From: terencehill Date: Tue, 15 Nov 2016 22:44:01 +0000 (+0100) Subject: Make sure bots don't move to removed goals such as a key when a Key Hunt round ends... X-Git-Tag: xonotic-v0.8.2~438 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=edc295814332d4ff827dd75b0edda94e66041c8d;p=xonotic%2Fxonotic-data.pk3dir.git Make sure bots don't move to removed goals such as a key when a Key Hunt round ends. It fixes #1101 --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 56c36c074..5f1950774 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -29,6 +29,10 @@ void havocbot_ai(entity this) if(bot_execute_commands(this)) return; + if(this.goalcurrent) + if(wasfreed(this.goalcurrent)) + navigation_poproute(this); + if (bot_strategytoken == this) if (!bot_strategytoken_taken) {