X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fbot.qc;h=8be71a3cf09f1f1dadbec0069f10099ebadd22d9;hb=04367582aa7c38c7c624ef4dff508933248e48a5;hp=5c70af58c7c2ded0bbb76abeb7dd896b9da7d511;hpb=9c00831f15821273adee4870b692443feddfb09f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/bot.qc b/qcsrc/server/bot/bot.qc index 5c70af58c..8be71a3cf 100644 --- a/qcsrc/server/bot/bot.qc +++ b/qcsrc/server/bot/bot.qc @@ -98,9 +98,7 @@ void bot_think() self.bot_strategytime = 0; } } - - // - if(self.aistatus & AI_STATUS_STUCK) + else if(self.aistatus & AI_STATUS_STUCK) navigation_unstuck(); // now call the current bot AI (havocbot for example) @@ -378,8 +376,8 @@ void bot_clientdisconnect() self.playermodel_freeme = string_null; self.playerskin_freeme = string_null; remove(self.bot_cmd_current); - if(navigation_wander_owner==self) - navigation_wander_owner = world; + if(bot_waypoint_queue_owner==self) + bot_waypoint_queue_owner = world; } void bot_clientconnect()