From 0248ba0861a7efb67fdbf6e69ee0aa27cd1f5bb4 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Mon, 13 Mar 2017 02:00:40 -0400 Subject: [PATCH] Don't allow ventcrawling if vents are welded What's the point of welding vents, again? --- code/modules/ventcrawl/ventcrawl_atmospherics.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/ventcrawl/ventcrawl_atmospherics.dm b/code/modules/ventcrawl/ventcrawl_atmospherics.dm index bb2d121125..f2cbb8018d 100644 --- a/code/modules/ventcrawl/ventcrawl_atmospherics.dm +++ b/code/modules/ventcrawl/ventcrawl_atmospherics.dm @@ -55,6 +55,12 @@ /obj/machinery/atmospherics/proc/can_crawl_through() return 1 +/obj/machinery/atmospherics/unary/can_crawl_through() + if(welded) + return 0 + + ..() + /obj/machinery/atmospherics/proc/findConnecting(var/direction) for(var/obj/machinery/atmospherics/target in get_step(src,direction)) if(target.initialize_directions & get_dir(target,src))