]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
bots: fix some bad uses of nextthink instead of bot_nextthink
authorRudolf Polzer <divverent@xonotic.org>
Mon, 31 Dec 2012 16:56:27 +0000 (17:56 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Dec 2012 16:56:27 +0000 (17:56 +0100)
qcsrc/server/bot/bot.qc

index 3e1cae313ff6ecbc06c3629d699c911bb16abb42..bd23e890356c3ca1b4e7fc1e295d60ff1df93b61 100644 (file)
@@ -45,7 +45,7 @@ void bot_think()
 
        if (autocvar_g_campaign && !campaign_bots_may_start)
        {
-               self.nextthink = time + 0.5;
+               self.bot_nextthink = time + 0.5;
                return;
        }
 
@@ -85,7 +85,7 @@ void bot_think()
        {
                // block the bot during the countdown to game start
                self.movement = '0 0 0';
-               self.nextthink = game_starttime;
+               self.bot_nextthink = game_starttime;
                return;
        }
 
@@ -393,7 +393,7 @@ void bot_clientconnect()
        self.bot_nextthink = time - random();
        self.lag_func = bot_lagfunc;
        self.isbot = TRUE;
-       self.createdtime = self.nextthink;
+       self.createdtime = self.bot_nextthink;
 
        if(!self.bot_config_loaded) // This is needed so team overrider doesn't break between matches
                bot_setnameandstuff();