]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/bot.qc
Use IS_DEAD where possible, also fix vehicles targeting frozen enemies
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / bot.qc
index 825799b282f20640799813ec4063331d392eb12f..468b32c4a57ef46fd2eb6186901475b5aae946fa 100644 (file)
@@ -113,7 +113,7 @@ void bot_think()
        }
 
        // if dead, just wait until we can respawn
-       if (self.deadflag)
+       if (IS_DEAD(self))
        {
                if (self.deadflag == DEAD_DEAD)
                {