]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/bot.qc
Merge branch 'master' into pooga/keepawaybots
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / bot.qc
index 5c70af58c7c2ded0bbb76abeb7dd896b9da7d511..8be71a3cf09f1f1dadbec0069f10099ebadd22d9 100644 (file)
@@ -98,9 +98,7 @@ void bot_think()
                        self.bot_strategytime = 0;
                }
        }
-
-       //
-       if(self.aistatus & AI_STATUS_STUCK)
+       else if(self.aistatus & AI_STATUS_STUCK)
                navigation_unstuck();
 
        // now call the current bot AI (havocbot for example)
@@ -378,8 +376,8 @@ void bot_clientdisconnect()
        self.playermodel_freeme = string_null;
        self.playerskin_freeme = string_null;
        remove(self.bot_cmd_current);
-       if(navigation_wander_owner==self)
-               navigation_wander_owner = world;
+       if(bot_waypoint_queue_owner==self)
+               bot_waypoint_queue_owner = world;
 }
 
 void bot_clientconnect()