]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/g_triggers.qc
make team/invert logic identical to most other ents for trigger_multiple
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / g_triggers.qc
index 54cb530fe47502e84cc81b922e14ad075a4b48dc..0a70de75f802fb13561c7ccf6eb259788b901023 100644 (file)
@@ -189,14 +189,12 @@ void multi_use()
 void multi_touch()
 {
        if not(self.spawnflags & 2)
-       {
                if not(other.iscreature)
                        return;
 
-               if(self.team)
-               if(self.team == other.team)
+       if(self.team)
+               if((self.spawnflags & 4 == 0) == (self.team != other.team))
                        return;
-       }
 
 // if the trigger has an angles field, check player's facing direction
        if (self.movedir != '0 0 0')