]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/havocbot/havocbot.qc
If for some reason final goal was removed clear route instead of simply removing it
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / havocbot / havocbot.qc
index ba8757502bc5afe21e8f09832ddd3a1ff7cac9f7..3d4e298d13fe6196ab4784a297f677a62795faf3 100644 (file)
@@ -676,7 +676,13 @@ void havocbot_movetogoal(entity this)
 
 
        bool locked_goal = false;
-       if(this.goalentity.bot_pickup)
+       if(this.goalentity && wasfreed(this.goalentity))
+       {
+               navigation_clearroute(this);
+               this.bot_strategytime = 0;
+               return;
+       }
+       else if(this.goalentity.bot_pickup)
        {
                if(this.goalentity.bot_pickup_respawning)
                {