From: terencehill Date: Thu, 12 Mar 2020 20:59:56 +0000 (+0100) Subject: Bot AI: clear aim target upon death. It fixes #2012 X-Git-Tag: xonotic-v0.8.5~1146 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6ee9b6d68572e589136f71f002828435a68c0b84;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: clear aim target upon death. It fixes #2012 --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 493038fc3..619d08dc5 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -104,6 +104,8 @@ void havocbot_ai(entity this) { if (this.goalcurrent) navigation_clearroute(this); + this.enemy = NULL; + this.bot_aimtarg = NULL; return; }