From a8d81aaaf31388ed4cc2b7a6ca07370a2cfaaca5 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 24 May 2018 20:38:32 +0200 Subject: [PATCH] Bot AI: fix bots sometimes moving to a random waypoint on respawn after they fall in the void --- qcsrc/server/bot/default/bot.qc | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.2