X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Frelay_teamcheck.qc;h=bf03b1542f0f957279c80f8f81ed1dbb891c0eaa;hb=15560a4a494efe42e0e5fa69a628eebc11d97fc7;hp=fee28df51af0842986aeed926ee23aad1744f933;hpb=8a336668045070d910c34b62f80a16c2042a1a7b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/trigger/relay_teamcheck.qc b/qcsrc/common/triggers/trigger/relay_teamcheck.qc index fee28df51..bf03b1542 100644 --- a/qcsrc/common/triggers/trigger/relay_teamcheck.qc +++ b/qcsrc/common/triggers/trigger/relay_teamcheck.qc @@ -4,7 +4,7 @@ void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger) { if(actor.team) { - if(this.spawnflags & 2) + if(this.spawnflags & RELAYTEAMCHECK_INVERT) { if(DIFF_TEAM(actor, this)) SUB_UseTargets(this, actor, trigger); @@ -17,7 +17,7 @@ void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger) } else { - if(this.spawnflags & 1) + if(this.spawnflags & RELAYTEAMCHECK_NOTEAM) SUB_UseTargets(this, actor, trigger); } }