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 13:28:01 -05:00
committed by letterjay
parent 981743a170
commit 417496aa6e
27 changed files with 62 additions and 51 deletions
@@ -42,7 +42,7 @@
if(istype(W, /obj/item/weldingtool))
if(weld(W, user))
to_chat(user, "<span class='notice'>You weld the assembly securely into place.</span>")
anchored = TRUE
setAnchored(TRUE)
state = 2
return
if(2)
@@ -62,7 +62,7 @@
if(weld(W, user))
to_chat(user, "<span class='notice'>You unweld the assembly from its place.</span>")
state = 1
anchored = TRUE
setAnchored(TRUE)
return
// Upgrades!