fix pipedispenser dispensing broken pipes (#63682)

assigned the p_init_dir variable to ALL_DIRECTIONS when a pipe dispenser
creates a normal pipe. Otherwise the pipe will have SOUTH as its
p_init_dir, creating a broken smart pipe.
This commit is contained in:
Ron
2021-12-30 18:43:39 -05:00
committed by GitHub
parent 95dd7d8910
commit c4b8eae548
@@ -47,6 +47,7 @@
return
var/p_dir = text2num(href_list["dir"])
var/obj/item/pipe/P = new (loc, p_type, p_dir)
P.p_init_dir = ALL_CARDINALS
P.set_piping_layer(piping_layer)
P.add_fingerprint(usr)
wait = world.time + 10