]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 d39e0654eb2cdf562fc38dfe8330f6fa1f021e32..427a229fb0a5b48d59c0c2f8d09495426521202a 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()