]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: clear aim target upon death. It fixes #2012
authorterencehill <piuntn@gmail.com>
Thu, 12 Mar 2020 20:59:56 +0000 (21:59 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 12 Mar 2020 20:59:56 +0000 (21:59 +0100)
qcsrc/server/bot/default/havocbot/havocbot.qc

index 493038fc31c28b0fa49c6aa300a99368dc7829f4..619d08dc5c878e23f4d131d2ecb2dd10a93ee826 100644 (file)
@@ -104,6 +104,8 @@ void havocbot_ai(entity this)
        {
                if (this.goalcurrent)
                        navigation_clearroute(this);
+               this.enemy = NULL;
+               this.bot_aimtarg = NULL;
                return;
        }