]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/func/breakable.qc
Bot AI: reduce powerup rating value
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / func / breakable.qc
index 4f488fc926ed233b345c111a48a556177596d5f4..d09ccd5e00a8cede8584138723c607d37637ea9c 100644 (file)
@@ -34,7 +34,7 @@
 //   target = targets to trigger when broken
 //   health = amount of damage it can take
 //   spawnflags:
-//     BREAKABLE_START_DISABLED: needs to be triggered to activate
+//     START_DISABLED: needs to be triggered to activate
 //     BREAKABLE_INDICATE_DAMAGE: indicate damage
 //     BREAKABLE_NODAMAGE: don't take direct damage (needs to be triggered to 'explode', then triggered again to restore)
 //     NOSPLASH: don't take splash damage
@@ -291,7 +291,7 @@ void func_breakable_reset(entity this)
 {
        this.team = this.team_saved;
        func_breakable_look_restore(this);
-       if(this.spawnflags & BREAKABLE_START_DISABLED)
+       if(this.spawnflags & START_DISABLED)
                func_breakable_behave_destroyed(this);
        else
                func_breakable_behave_restore(this);