]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix bots sometimes moving to a random waypoint on respawn after they fall...
authorterencehill <piuntn@gmail.com>
Thu, 24 May 2018 18:38:32 +0000 (20:38 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 24 May 2018 18:38:32 +0000 (20:38 +0200)
qcsrc/server/bot/default/bot.qc

index b4272e3e0648224f6de70f8a1e2bd8f871bb0b5c..b69cbf8ab7dd98df667b266b56cd4f26d0924f44 100644 (file)
@@ -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)
                {