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 7b0175a..1a07234 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) {