X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ftrigger%2Frelay_teamcheck.qc;h=217c0e4b02e86945d279249f399b5b15cd204833;hp=bf03b1542f0f957279c80f8f81ed1dbb891c0eaa;hb=4e21f418ad9e6287efb942c1fa2861a51981110a;hpb=62d736d8c3a51baf5fa3a4265e39a2b773704a91 diff --git a/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc b/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc index bf03b1542..217c0e4b0 100644 --- a/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc +++ b/qcsrc/common/mapobjects/trigger/relay_teamcheck.qc @@ -1,7 +1,11 @@ #include "relay_teamcheck.qh" + #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 +28,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;