From: terencehill Date: Thu, 24 May 2018 18:38:32 +0000 (+0200) Subject: Bot AI: fix bots sometimes moving to a random waypoint on respawn after they fall... X-Git-Tag: xonotic-v0.8.5~1923^2~48 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8d81aaaf31388ed4cc2b7a6ca07370a2cfaaca5;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots sometimes moving to a random waypoint on respawn after they fall in the void --- diff --git a/qcsrc/server/bot/default/bot.qc b/qcsrc/server/bot/default/bot.qc index b4272e3e0..b69cbf8ab 100644 --- a/qcsrc/server/bot/default/bot.qc +++ b/qcsrc/server/bot/default/bot.qc @@ -129,6 +129,9 @@ void bot_think(entity this) // if dead, just wait until we can respawn if (IS_DEAD(this)) { + if (bot_waypoint_queue_owner == this) + bot_waypoint_queue_owner = NULL; + this.aistatus = 0; CS(this).movement = '0 0 0'; if (this.deadflag == DEAD_DEAD) {