fixes is_bent and stored not being created/set properly

This commit is contained in:
duncathan
2015-08-14 22:50:44 -06:00
parent 8b67597538
commit 6ba803b396
2 changed files with 25 additions and 26 deletions
+5 -7
View File
@@ -163,13 +163,11 @@ Pipelines + Other Objects -> Pipe network
return img
/obj/machinery/atmospherics/construction(D, P, pipe_type, obj_color)
if(can_unwrench)
color = obj_color
pipe_color = obj_color
stored.dir = src.dir //need to define them here, because the obj directions...
stored.pipe_type = pipe_type //... were not set at the time the stored pipe was created
stored.color = obj_color
/obj/machinery/atmospherics/construction(obj/item/pipe/pipe_item)
if(can_unwrench && pipe_item)
color = pipe_item.color
pipe_color = pipe_item.color
stored = pipe_item
var/turf/T = loc
level = T.intact ? 2 : 1
atmosinit()