From: Steinar H. Gunderson Date: Sat, 19 Feb 2005 16:48:31 +0000 (+0000) Subject: Remove a debugging printf. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=a8f5648a4186b79c28c0c98f647802fc7ee36af8 Remove a debugging printf. 14:30-17:45 --- diff --git a/bigscreen/fetch_group.cpp b/bigscreen/fetch_group.cpp index 7962897..ff71950 100644 --- a/bigscreen/fetch_group.cpp +++ b/bigscreen/fetch_group.cpp @@ -52,8 +52,6 @@ void FetchGroup::operator() (pqxx::transaction<> &t) sc.score = i["score"].as(sc.score); } - std::printf("score: %u\n", sc.score); - curr_group.players[curr_group.players.size() - 1].scores.push_back(sc); } } diff --git a/bigscreen/groupscreen.cpp b/bigscreen/groupscreen.cpp index 9150906..ed574ca 100644 --- a/bigscreen/groupscreen.cpp +++ b/bigscreen/groupscreen.cpp @@ -33,6 +33,10 @@ void GroupScreen::draw(unsigned char *buf) unsigned x = 90; for (std::vector::const_iterator j = i->scores.begin(); j != i->scores.end(); ++j) { + if (j->score == -1) { + continue; + } + char text[16]; sprintf(text, "%u", j->score);