X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ftrigger%2Frelay_teamcheck.qc;h=5291f529062b8dd57bfbcaa5d9beaa4342b0cf2b;hb=90d9f7c775306324957323d53d5a4ad995d999e3;hp=bf03b1542f0f957279c80f8f81ed1dbb891c0eaa;hpb=5aab6120acfc624751d20a695d1b911b3e919831;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc b/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc index bf03b1542..5291f5290 100644 --- a/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc +++ b/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc @@ -2,6 +2,9 @@ #ifdef SVQC void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger) { + if(this.active != ACTIVE_ACTIVE) + return; + if(actor.team) { if(this.spawnflags & RELAYTEAMCHECK_INVERT) @@ -24,11 +27,13 @@ void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger) void trigger_relay_teamcheck_reset(entity this) { + this.active = ACTIVE_ACTIVE; this.team = this.team_saved; } spawnfunc(trigger_relay_teamcheck) { + this.active = ACTIVE_ACTIVE; this.team_saved = this.team; IL_PUSH(g_saved_team, this); this.use = trigger_relay_teamcheck_use;