X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fflipflop.qc;h=8265d12351a89ecb3d8c0f7a7a0fa3393a345fd4;hp=d2549f6c506b228500974313e3f13f5bab397597;hb=a07691e754aa071189c034693af3476777d86720;hpb=00f6072f2b0f269b2bc63a62ad900515646ca30d diff --git a/qcsrc/common/triggers/trigger/flipflop.qc b/qcsrc/common/triggers/trigger/flipflop.qc index d2549f6c5..8265d1235 100644 --- a/qcsrc/common/triggers/trigger/flipflop.qc +++ b/qcsrc/common/triggers/trigger/flipflop.qc @@ -2,18 +2,18 @@ /*QUAKED spawnfunc_trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ENABLED "Flip-flop" trigger gate... lets only every second trigger event through */ -void flipflop_use() -{SELFPARAM(); - self.state = !self.state; - if(self.state) - SUB_UseTargets(); +void flipflop_use(entity this, entity actor, entity trigger) +{ + this.state = !this.state; + if(this.state) + SUB_UseTargets(this, actor, trigger); } spawnfunc(trigger_flipflop) { if(this.spawnflags & 1) this.state = 1; - this.use = flipflop_use; + this.use1 = flipflop_use; this.reset = spawnfunc_trigger_flipflop; // perfect resetter }