]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/door.qc
func_breakable: replace spawnflag magic numbers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / door.qc
index 5b4fae04303818c4300d7c083aca2bd02985a047..d31c5a464b416f56ea268b87238963f67ea4ea14 100644 (file)
@@ -264,7 +264,7 @@ void door_use(entity this, entity actor, entity trigger)
 
 void door_damage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force)
 {
-       if(this.spawnflags & DOOR_NOSPLASH)
+       if(this.spawnflags & NOSPLASH)
                if(!(DEATH_ISSPECIAL(deathtype)) && (deathtype & HITTYPE_SPLASH))
                        return;
        this.health = this.health - damage;