Make sure bots don't move to removed goals such as a key when a Key Hunt round ends...
authorterencehill <piuntn@gmail.com>
Tue, 15 Nov 2016 22:44:01 +0000 (23:44 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 15 Nov 2016 22:44:01 +0000 (23:44 +0100)
qcsrc/server/bot/default/havocbot/havocbot.qc

index 56c36c0745a759e4236f3893ce08e327c12ee50f..5f1950774f55bd1805cba9f91c5d85870a5877d3 100644 (file)
@@ -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)
        {