From 6d1d678b3a08d95f7f1658ff5d98556ecae85047 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Mon, 12 Mar 2018 06:58:38 -0500 Subject: [PATCH] [MIRROR] Machinery can now also be anchored on any /turf/open/indestructible, instead of only /turf/open/plating (#5915) * Machines can now be anchored on /turf/open/indestructible (#36311) * Machinery can now also be anchored on any /turf/open/indestructible, instead of only /turf/open/plating --- code/game/machinery/_machinery.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/_machinery.dm b/code/game/machinery/_machinery.dm index 76709d438e..7b31c502e4 100644 --- a/code/game/machinery/_machinery.dm +++ b/code/game/machinery/_machinery.dm @@ -359,7 +359,7 @@ Class Procs: return 0 /obj/proc/can_be_unfasten_wrench(mob/user, silent) //if we can unwrench this object; returns SUCCESSFUL_UNFASTEN and FAILED_UNFASTEN, which are both TRUE, or CANT_UNFASTEN, which isn't. - if(!isfloorturf(loc) && !anchored) + if(!(isfloorturf(loc) || istype(loc, /turf/open/indestructible)) && !anchored) to_chat(user, "[src] needs to be on the floor to be secured!") return FAILED_UNFASTEN return SUCCESSFUL_UNFASTEN