]> ruin.nu Git - icfp05.git/commitdiff
don't vote if there is no plan
authorMichael Andreen <harv@ruin.nu>
Sun, 10 Jul 2005 13:15:41 +0000 (13:15 +0000)
committerMichael Andreen <harv@ruin.nu>
Sun, 10 Jul 2005 13:15:41 +0000 (13:15 +0000)
botsrc/bot.cpp

index 168a0a904ee553dbacdd44ddbb4dbe9bc770ddf7..81bb7a9b7ebb0520edbec780559a640f84ec62c6 100644 (file)
@@ -197,6 +197,9 @@ void Bot::updateWorld(){
                if (input == "sc/")
                        break;
                istringstream controlledCop(input);
+               controlledCop >> input;
+               controlledCop >> input;
+               _winningPlans.erase(input);
        }
 
        getline(cin,input);