]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_swamp.qc
Replace all player/bot/spectator classname checks with macros
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_swamp.qc
index 9a24e3b77247f3990fad94fb66289410bc16710d..2a9d5427b639ed8fb8e0f0b14bfdc6782f18d670 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *              t_swamp.c
-*              Adds spawnfunc_trigger_swamp and suppoart routines for nexuiz 1.2.1+
+*              Adds spawnfunc_trigger_swamp and suppoart routines for xonotic 1.2.1+
 *              Author tZork (Jakob MG) 
 *              jakob@games43.se
 *              2005 11 29
@@ -54,7 +54,7 @@ void swamp_touch(void)
 {
        // If whatever thats touching the swamp is not a player
        // or if its a dead player, just dont care abt it.
-       if((other.classname != "player")||(other.deadflag != DEAD_NO))
+       if(!IS_PLAYER(other) || other.deadflag != DEAD_NO)
                return;
 
        EXACTTRIGGER_TOUCH;
@@ -98,4 +98,4 @@ void spawnfunc_trigger_swamp(void)
                self.swamp_interval = 1;
        if(self.swamp_slowdown <= 0) 
                self.swamp_slowdown = 0.5;
-};
+}