This code was meant to run when a bot is NOT dead
authorterencehill <piuntn@gmail.com>
Sun, 4 Dec 2016 02:09:32 +0000 (03:09 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 4 Dec 2016 02:09:32 +0000 (03:09 +0100)
qcsrc/server/bot/default/havocbot/havocbot.qc

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