/*
* 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
{
// 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;
self.swamp_interval = 1;
if(self.swamp_slowdown <= 0)
self.swamp_slowdown = 0.5;
-};
+}