From a8f5648a4186b79c28c0c98f647802fc7ee36af8 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 19 Feb 2005 16:48:31 +0000 Subject: [PATCH 1/1] Remove a debugging printf. 14:30-17:45 --- bigscreen/fetch_group.cpp | 2 -- bigscreen/groupscreen.cpp | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.5