Fixes ventcrawling across piping adapters.

This commit is contained in:
Rob Nelson
2015-09-29 22:04:24 -07:00
parent a7ee32eaeb
commit 4bdfbcd29d
2 changed files with 6 additions and 13 deletions

View File

@@ -1250,16 +1250,8 @@
return
/obj/machinery/atmospherics/pipe/layer_adapter/relaymove(mob/living/user, direction)
if(!(direction & initialize_directions)) //can't go in a way we aren't connecting to
var/on_offset_layer = user.ventcrawl_layer == layer_node.piping_layer
on_offset_layer = !on_offset_layer
if(on_offset_layer)
user.ventcrawl_layer = layer_node.piping_layer
else
user.ventcrawl_layer = mid_node.piping_layer
user << "You align yourself with the [user.ventcrawl_layer]\th layer." // ????
return 1
else
// Autoset layer
if(direction & initialize_directions)
user.ventcrawl_layer = (direction == dir) ? PIPING_LAYER_DEFAULT : piping_layer
user << "You are redirected into the [user.ventcrawl_layer]\th piping layer."
return ..()