From 27ff2bd7362876c198411150315c99d87a6032e2 Mon Sep 17 00:00:00 2001 From: Neerti Date: Mon, 1 Jan 2018 06:41:17 -0500 Subject: [PATCH] Removes Hardcoded Z-check on Handteles Instead they use the using_map datum to see if the person using a hand-tele is on an admin level. --- code/game/objects/items/weapons/teleportation.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/teleportation.dm b/code/game/objects/items/weapons/teleportation.dm index 33ed9f96e1..c8af607576 100644 --- a/code/game/objects/items/weapons/teleportation.dm +++ b/code/game/objects/items/weapons/teleportation.dm @@ -133,7 +133,7 @@ Frequency: /obj/item/weapon/hand_tele/attack_self(mob/user as mob) var/turf/current_location = get_turf(user)//What turf is the user on? - if(!current_location||current_location.z==2||current_location.z>=7 || current_location.block_tele)//If turf was not found or they're on z level 2 or >7 which does not currently exist. + if(!current_location || current_location.z in using_map.admin_levels || current_location.block_tele)//If turf was not found or they're on z level 2 or >7 which does not currently exist. user << "\The [src] is malfunctioning." return var/list/L = list( )