From: terencehill Date: Thu, 2 Nov 2017 16:58:58 +0000 (+0100) Subject: Clear current bot route as soon as bot dies or gets frozen X-Git-Tag: xonotic-v0.8.5~2378^2~31 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1c830f174100063e3044f6e56de8660b44d1ac22;p=xonotic%2Fxonotic-data.pk3dir.git Clear current bot route as soon as bot dies or gets frozen --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 86826f6b6..cf4136c6e 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -85,7 +85,11 @@ void havocbot_ai(entity this) } if(IS_DEAD(this) || STAT(FROZEN, this)) + { + if (this.goalcurrent) + navigation_clearroute(this); return; + } havocbot_chooseenemy(this);