]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
check that the entity is in fact trigger_teleport before checking for trigger_telepor...
authorJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 7 Feb 2023 15:34:31 +0000 (16:34 +0100)
committerJuhu <5894800-Juhu_@users.noreply.gitlab.com>
Tue, 7 Feb 2023 15:35:18 +0000 (16:35 +0100)
qcsrc/common/mapobjects/trigger/teleport.qc

index 42e1bd24fa06c4b5f93039725d81c461a579ffa7..e6da12a34f12ef3f492da45f4a79dfe114ea09ca 100644 (file)
@@ -28,7 +28,7 @@ bool Teleport_Active(entity this, entity player)
        if(IS_TURRET(player))
                return false;
 
-       if((this.spawnflags & TELEPORT_SPECTATOR) && !IS_SPEC(player))
+       if(this.classname == "trigger_teleport" && this.spawnflags & TELEPORT_SPECTATOR && !IS_SPEC(player))
                return false;
 #elif defined(CSQC)
        if(!IS_PLAYER(player))