Fix "bot_cmd X pause" command occasionally blocking all other bots
authorterencehill <piuntn@gmail.com>
Tue, 29 Nov 2016 17:58:39 +0000 (18:58 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 29 Nov 2016 17:58:39 +0000 (18:58 +0100)
qcsrc/server/bot/default/bot.qc

index d39e065..427a229 100644 (file)
@@ -659,6 +659,7 @@ void bot_clear(entity this)
        bot_remove_from_bot_list(this);
        if(bot_waypoint_queue_owner == this)
                bot_waypoint_queue_owner = NULL;
+       this.aistatus &= ~AI_STATUS_STUCK; // otherwise bot_waypoint_queue_owner will be set again to this by navigation_unstuck
 }
 
 void bot_serverframe()