X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Ftriggers%2Fplatforms.qc;h=09e733000f21dc4582627f670a766af704545de8;hb=2f215c603bf1b4dd44b9d166180f535c88602e9f;hp=10af3e1944316a7f1b6299297cfbd6a3686cb3d3;hpb=c039d054a46888048d214000273ccfc63e4611b6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/platforms.qc b/qcsrc/common/triggers/platforms.qc index 10af3e194..09e733000 100644 --- a/qcsrc/common/triggers/platforms.qc +++ b/qcsrc/common/triggers/platforms.qc @@ -63,8 +63,8 @@ void plat_hit_top(entity this) _sound (this, CH_TRIGGER_SINGLE, this.noise1, VOL_BASE, ATTEN_NORM); this.state = 1; - SUB_THINK(this, plat_go_down); - this.SUB_NEXTTHINK = this.SUB_LTIME + 3; + setthink(this, plat_go_down); + this.nextthink = this.ltime + 3; } void plat_hit_bottom(entity this) @@ -105,7 +105,7 @@ void plat_center_touch(entity this, entity toucher) if (this.enemy.state == 2) { plat_go_up(this.enemy); } else if (this.enemy.state == 1) - this.enemy.SUB_NEXTTHINK = this.enemy.SUB_LTIME + 1; + this.enemy.nextthink = this.enemy.ltime + 1; } void plat_outside_touch(entity this, entity toucher)