From e51cb41cb5a8aeef4f11088d71229766de2b4a92 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 5 Mar 2005 01:09:11 +0000 Subject: [PATCH] Fix off-by-one for "needs to lead" code. --- bigscreen/groupscreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index cdd2633..2c49020 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -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); -- 2.39.2