Rename tourn -> active_tournament
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 01:24:35 +0000 (01:24 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 19 Feb 2005 01:24:35 +0000 (01:24 +0000)
bigscreen/ccbs_bigscreen.cpp

index d5bb931..08d2bf2 100644 (file)
@@ -9,7 +9,7 @@ public:
        std::string name;
 };
 
-Tournament tourn;
+Tournament active_tournament;
 
 /* A trigger that sets a flag whenever it's trigged. */
 class FlagTrigger : pqxx::trigger {
@@ -62,19 +62,19 @@ public:
 
 void init(pqxx::connection &conn)
 {
-       conn.perform(FetchCurrentTournament(&tourn));
+       conn.perform(FetchCurrentTournament(&active_tournament));
 
-       if (tourn.id == -1) {
+       if (active_tournament.id == -1) {
                std::fprintf(stderr, "No active tournament\n");
        } else {
                std::fprintf(stderr, "Current tournament is %d (name: '%s')\n",
-                       tourn.id, tourn.name.c_str());
+                       active_tournament.id, active_tournament.name.c_str());
        }
 }
 
 void main_loop(pqxx::connection &conn)
 {
-       if (tourn.id == -1) {
+       if (active_tournament.id == -1) {
                // No active tournament, sleep a second or so and exit
                sleep(1);
                return;