]> git.sesse.net Git - ccbs/commitdiff
Fix two signed/unsigned warnings.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Feb 2005 23:04:08 +0000 (23:04 +0000)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 20 Feb 2005 23:04:08 +0000 (23:04 +0000)
20:00-20:30
22:00-00:00

bigscreen/groupscreen.cpp

index 7b0175a62b8a617b5f15c00e6c8dd73b67f5cfef..1a0723408211f6f983a8ca93fb6123d7328e7949 100644 (file)
@@ -453,7 +453,9 @@ void GroupScreen::draw(unsigned char *buf)
                                y += 30;
                        }
 
-                       if (next_player->total + max_score_this_song > qualify_beat_worst_case && (qualify_beat_worst_case != win_beat)) {
+                       if (group.num_qualifying > 0 &&
+                           next_player->total + max_score_this_song > unsigned(qualify_beat_worst_case) &&
+                           (unsigned(qualify_beat_worst_case) != win_beat)) {
                                int qual_need = std::max(qualify_beat_worst_case - next_player->total + 1, 0U);
                                
                                if (qualify_beat_worst_case == qualify_beat_best_case) {