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
This commit is contained in:
n3ophyt3@gmail.com
2010-11-11 04:10:50 +00:00
parent b58a16e6f5
commit fb86bf322d
+3 -4
View File
@@ -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