mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 23:17:02 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user