From 7b502a0989a5e85293f46bf8d36a8355c53d4640 Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Sat, 6 Aug 2016 16:10:06 -0400 Subject: [PATCH] get_turf instead of snowflake_check --- code/game/gamemodes/objective.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index ae49b640adf..f0a8f8957b2 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -177,7 +177,8 @@ var/list/potential_theft_objectives=subtypesof(/datum/theft_objective) \ if(target.current.stat == DEAD || issilicon(target.current) || isbrain(target.current) || !target.current.ckey) //Borgs/brains/AIs count as dead for traitor objectives. --NeoFite return 1 // TODO: Tie into space manager - if((target.current.z in config.admin_levels) || ((target.current.loc.type in typesof(/obj/structure/closet)) && (target.current.loc.z in config.admin_levels))) //No hiding in lockers and cheezing greentext. + var/turf/target_location = get_turf(target.current) + if(target_location.z in config.admin_levels) //No hiding in lockers and cheezing greentext. return 0 return 1