]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/trigger/teleport.qc
Wrap some statuses with parentesis to avoid possible obscure bugs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / trigger / teleport.qc
index b581db0617762dd13353dbe64cdc25028d9a58c9..cc8189a032a715edc97dd2d5fc5b5ce28f933ca7 100644 (file)
@@ -40,7 +40,7 @@ bool Teleport_Active(entity this, entity player)
                        return false;
 
        // no need to call IS_OBSERVER(), observers never call use/touch functions which means this is never an observer
-       if(this.classname == "trigger_teleport" && this.spawnflags & TELEPORT_OBSERVERS_ONLY)
+       if(this.classname == "trigger_teleport" && (this.spawnflags & TELEPORT_OBSERVERS_ONLY))
                return false;
 
        return true;