From: Rudolf Polzer Date: Mon, 31 Dec 2012 16:56:27 +0000 (+0100) Subject: bots: fix some bad uses of nextthink instead of bot_nextthink X-Git-Tag: xonotic-v0.7.0~148 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ecfdfa1f5483e5838900ecbaac12ead497e10d2d;p=xonotic%2Fxonotic-data.pk3dir.git bots: fix some bad uses of nextthink instead of bot_nextthink --- diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index 3e1cae313..bd23e8903 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -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();