]> git.sesse.net Git - ccbs/commitdiff
Fix a bug where “need to qualify” would not be shown in the end game.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Apr 2012 18:40:49 +0000 (20:40 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Apr 2012 18:40:49 +0000 (20:40 +0200)
bigscreen/groupscreen.cpp

index 9f3b17c521eac7ff9c42b406a7511cfd0839ba0c..090a766c648d887d50816c29ccaef048283d3195 100644 (file)
@@ -534,7 +534,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co
                                tmp.push_back(max_score[i]);
                        }
                        std::sort(tmp.begin(), tmp.end());
                                tmp.push_back(max_score[i]);
                        }
                        std::sort(tmp.begin(), tmp.end());
-                       if (tmp.size() > group.num_qualifying) {
+                       if (tmp.size() >= group.num_qualifying) {
                                qualify_beat_worst_case = tmp[tmp.size() - group.num_qualifying];
                        } else {
                                qualify_beat_worst_case = 0;
                                qualify_beat_worst_case = tmp[tmp.size() - group.num_qualifying];
                        } else {
                                qualify_beat_worst_case = 0;
@@ -548,7 +548,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co
                        }
 
                        std::sort(tmp2.begin(), tmp2.end());
                        }
 
                        std::sort(tmp2.begin(), tmp2.end());
-                       if (tmp2.size() > group.num_qualifying) {
+                       if (tmp2.size() >= group.num_qualifying) {
                                qualify_beat_best_case = tmp2[tmp2.size() - group.num_qualifying];
                        } else {
                                qualify_beat_best_case = 0;
                                qualify_beat_best_case = tmp2[tmp2.size() - group.num_qualifying];
                        } else {
                                qualify_beat_best_case = 0;