From 353dd23143fdadeb009af2067f8d1c266dfeb238 Mon Sep 17 00:00:00 2001 From: kingofkosmos Date: Sun, 17 May 2015 14:08:39 +0300 Subject: [PATCH] Added a check so mechs aren't able to drill space. --- code/game/mecha/equipment/tools/tools.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/mecha/equipment/tools/tools.dm b/code/game/mecha/equipment/tools/tools.dm index fb3c28a3d27..655e84fe763 100644 --- a/code/game/mecha/equipment/tools/tools.dm +++ b/code/game/mecha/equipment/tools/tools.dm @@ -87,6 +87,8 @@ /obj/item/mecha_parts/mecha_equipment/tool/drill/action(atom/target) if(!action_checks(target)) return + if(istype(target, /turf) && !istype(target, /turf/simulated)) + return if(isobj(target)) var/obj/target_obj = target if(target_obj.unacidable)