From: Steinar H. Gunderson Date: Sat, 28 Apr 2012 18:40:49 +0000 (+0200) Subject: Fix a bug where “need to qualify” would not be shown in the end game. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=c9a8a244cec31b825aeffce6a71e6d7d6db53336;ds=sidebyside Fix a bug where “need to qualify” would not be shown in the end game. --- diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 9f3b17c..090a766 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -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()); - 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; @@ -548,7 +548,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co } 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;