]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
Fix "bot_cmd X pause" command occasionally blocking all other bots
[xonotic/xonotic-data.pk3dir.git] / 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()