]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 dd44bbb4e69e88c2d64cf38037cacbe93da9601a..e599bb8bd6f15bfcb0ee20b25ceb4878c485bb2a 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))
                {