]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/portals.qc
Fix a warning when spawning in CTS
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / portals.qc
index f6502dfd812335d794b6a43f79322a03f68a6402..7d85eec7eb06714b95d51bb170d1919789c01a1f 100644 (file)
@@ -269,7 +269,7 @@ void Portal_Touch(entity this)
                return; // handled by think
 
        if(!autocvar_g_vehicles_teleportable)
-       if(other.vehicle_flags & VHF_ISVEHICLE)
+       if(IS_VEHICLE(other))
                return; // no teleporting vehicles?
 
        if(!this.enemy)