]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/campcheck/campcheck.qc
Use IS_DEAD everywhere
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / campcheck / campcheck.qc
index 0ba0bb64e1f93f98831c38f54b940e9c9766f6cb..0c4a88d61416c2177fefe5a8b3fa9ff9cc54e9dc 100644 (file)
@@ -35,7 +35,7 @@ MUTATOR_HOOKFUNCTION(campcheck, PlayerPreThink)
        if(time >= game_starttime)
        if(IS_PLAYER(self))
        if(IS_REAL_CLIENT(self)) // bots may camp, but that's no reason to constantly kill them
-       if(self.deadflag == DEAD_NO)
+       if(!IS_DEAD(self))
        if(!self.frozen)
        if(!self.BUTTON_CHAT)
        if(autocvar_g_campcheck_interval)