]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/button.qc
func_breakable: replace spawnflag magic numbers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / button.qc
index 8e5e3530e3512759e9423ddac0975cbdc0ccdd7a..fd113205f0e49627d57306ea92f6457a1a96d592 100644 (file)
@@ -92,7 +92,7 @@ void button_touch(entity this, entity toucher)
 
 void button_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;
        if (this.spawnflags & BUTTON_DONTACCUMULATEDMG)