Fixed construction of fulltile electrochromic windows

This commit is contained in:
Heroman
2019-03-10 09:05:35 +10:00
parent bdb96af96f
commit 41d2d5e2f2

View File

@@ -304,6 +304,10 @@
if(do_after(user, 20 * C.toolspeed, src) && state == 0)
playsound(src.loc, 'sound/items/Deconstruct.ogg', 50, 1)
var/obj/structure/window/reinforced/polarized/P = new(loc, dir)
if(is_fulltile())
P.fulltile = TRUE
P.icon_state = "fwindow"
P.maxhealth = maxhealth
P.health = health
P.state = state
P.anchored = anchored