From fb86bf322d5d1ed06e142696de6859bd99793f8d Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Thu, 11 Nov 2010 04:10:50 +0000 Subject: [PATCH] It should no longer be possible to make new pipe on top of existing pipe hiding under floortiles. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@405 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/pipe/construction.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/pipe/construction.dm b/code/game/machinery/pipe/construction.dm index 93f78e89824..5339a74cdcc 100644 --- a/code/game/machinery/pipe/construction.dm +++ b/code/game/machinery/pipe/construction.dm @@ -165,10 +165,9 @@ Buildable meters var/pipedir = src.get_pdir()|src.get_hdir() // all possible pipe dirs including h/e# for(var/obj/machinery/atmospherics/M in src.loc) - if(M.level == src.level) // only on same level - if( (M.initialize_directions & pipedir) || (M.initialize_directions & pipedir) ) // matches at least one direction on either type of pipe - user << "There is already a pipe at that location." - return + if( (M.initialize_directions & pipedir) || (M.initialize_directions & pipedir) ) // matches at least one direction on either type of pipe + user << "There is already a pipe at that location." + return playsound(src.loc, 'Ratchet.ogg', 50, 1) // no conflicts found