]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/plat.qc
Remove magic numbers from platforms (func_plat)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / plat.qc
index 9f97a1cea09b764d2021900fb011be0978254541..d3f9587b832c79284139bc90eea34f747a2e366d 100644 (file)
@@ -60,7 +60,10 @@ spawnfunc(func_plat)
 {
        if (this.sounds == 0) this.sounds = 2;
 
-    if (this.spawnflags & 4) this.dmg = 10000;
+       if (this.spawnflags & PLAT_CRUSH)
+       {
+               this.dmg = 10000;
+       }
 
     if (this.dmg && (this.message == "")) this.message = "was squished";
     if (this.dmg && (this.message2 == "")) this.message2 = "was squished by";