From 6ee9b6d68572e589136f71f002828435a68c0b84 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 12 Mar 2020 21:59:56 +0100 Subject: [PATCH] Bot AI: clear aim target upon death. It fixes #2012 --- qcsrc/server/bot/default/havocbot/havocbot.qc | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.2