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 7962897..ff71950 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 9150906..ed574ca 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);