]> git.sesse.net Git - ccbs/blobdiff - bigscreen/groupscreen.cpp
Fix off-by-one for "needs to lead" code.
[ccbs] / bigscreen / groupscreen.cpp
index cdd2633a1a684a8e799431be81b631651b421211..2c49020f6d1f854ebb15b3d50e13839581b2495e 100644 (file)
@@ -527,7 +527,7 @@ void GroupScreen::draw_next_up_player(unsigned char *buf, const Group &group, co
                if (player.total + max_score_this_song > lead_beat && (lead_beat != win_beat)) {
                        int lead_need = std::max(lead_beat - player.total + 1, 0U);
 
-                       if (lead_need > 0) {
+                       if (lead_need > 1) {
                                text = widestring("Needs to lead: ") + widestring(pqxx::to_string(lead_need));
                                this_width = my_draw_text(text, NULL, 18.0);
                                my_draw_text(text, buf, 18.0, (LOGICAL_SCREEN_WIDTH/2) - this_width/2, y);