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