mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
Fix pipe construction conflicting with existing pipes too much.
Bug in the init_dirs_cache was not setting direction of pipes, making all cached dirs be for south. Because mapped in pipes didn't have piping layer set, mapped in pipes conflicted. The full-tile check for unary machines forgot to exclude *itself*
This commit is contained in:
@@ -104,6 +104,7 @@
|
||||
// Returns TRUE if something is blocking, FALSE if its okay to continue.
|
||||
/obj/machinery/atmospherics/unary/proc/check_for_obstacles()
|
||||
for(var/obj/machinery/atmospherics/M in loc)
|
||||
if(M == src) continue
|
||||
if((M.pipe_flags & pipe_flags & PIPING_ONE_PER_TURF)) //Only one dense/requires density object per tile, eg connectors/cryo/heater/coolers.
|
||||
visible_message("<span class='warning'>\The [src]'s cannot be connected, something is hogging the tile!</span>")
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user