From edc295814332d4ff827dd75b0edda94e66041c8d Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 15 Nov 2016 23:44:01 +0100 Subject: [PATCH] Make sure bots don't move to removed goals such as a key when a Key Hunt round ends. It fixes #1101 --- qcsrc/server/bot/default/havocbot/havocbot.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 56c36c0745..5f1950774f 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) { -- 2.39.2