]> git.sesse.net Git - ccbs/commitdiff
Remove a debugging printf.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 16:48:31 +0000 (16:48 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 16:48:31 +0000 (16:48 +0000)
14:30-17:45

bigscreen/fetch_group.cpp
bigscreen/groupscreen.cpp

index 7962897ca328a7eb9a7f2fae5a04ebfe873d03e6..ff719506d0479e61a17751014c3569950753dfd8 100644 (file)
@@ -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);
        }
 }
index 9150906d17f8645db7720070a8c77ccf7413249f..ed574ca68be233d41cb1decc9a332f0224e410c8 100644 (file)
@@ -33,6 +33,10 @@ void GroupScreen::draw(unsigned char *buf)
 
                unsigned x = 90;
                for (std::vector<Score>::const_iterator j = i->scores.begin(); j != i->scores.end(); ++j) {
+                       if (j->score == -1) {
+                               continue;
+                       }
+                       
                        char text[16];
                        sprintf(text, "%u", j->score);