Fix constructed directional windows leaking atmos, wrap setting of the anchored var on objects (#38934)

* Wrap setting anchored for structures, fix atmos bug

* forgot this

* Add a signal for setanchored

* move setanchored to obj

* machinery, also some structure stuff

* tabbing
This commit is contained in:
vuonojenmustaturska
2018-07-06 21:27:35 +03:00
committed by letterjay
parent 981743a170
commit 417496aa6e
27 changed files with 62 additions and 51 deletions
@@ -106,7 +106,7 @@
return
to_chat(user, "<span class='notice'>You secure the airlock assembly.</span>")
name = "secured airlock assembly"
anchored = TRUE
setAnchored(TRUE)
else
to_chat(user, "There is another door here!")
@@ -119,7 +119,7 @@
return
to_chat(user, "<span class='notice'>You unsecure the airlock assembly.</span>")
name = "airlock assembly"
anchored = FALSE
setAnchored(FALSE)
else if(istype(W, /obj/item/stack/cable_coil) && state == AIRLOCK_ASSEMBLY_NEEDS_WIRES && anchored )
if(!W.tool_start_check(user, amount=1))
@@ -281,7 +281,7 @@
target.heat_proof_finished = source.heat_proof_finished
target.created_name = source.created_name
target.state = source.state
target.anchored = source.anchored
target.setAnchored(source.anchored)
if(previous)
target.previous_assembly = source.type
if(electronics)