From: terencehill Date: Sun, 4 Dec 2016 02:09:32 +0000 (+0100) Subject: This code was meant to run when a bot is NOT dead X-Git-Tag: xonotic-v0.8.2~396 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f74cf95ffc3023198403f67321a4db235028bc33;p=xonotic%2Fxonotic-data.pk3dir.git This code was meant to run when a bot is NOT dead --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index dd44bbb4e..e599bb8bd 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -48,7 +48,7 @@ void havocbot_ai(entity this) // TODO: tracewalk() should take care of this job (better path finding under water) // if we don't have a goal and we're under water look for a waypoint near the "shore" and push it - if(IS_DEAD(this)) + if(!(IS_DEAD(this))) if(!this.goalcurrent) if(this.waterlevel == WATERLEVEL_SWIMMING || (this.aistatus & AI_STATUS_OUT_WATER)) {