More window melding

Tinted and reinforced windows now too
Also fixed windows not melding if they were not built, but mapped.
This commit is contained in:
comma
2012-03-15 23:23:53 +02:00
parent 8c78cc8783
commit b90b2cf58e
2 changed files with 8 additions and 1 deletions
+8 -1
View File
@@ -293,6 +293,10 @@
icon_state = "twindow"
update_nearby_tiles(need_rebuild=1)
relativewindow()
for(var/obj/structure/window/w in range(src,1))
if (w.anchored)
w.relativewindow()
return
@@ -359,7 +363,10 @@
if (istype(src,/obj/structure/window/basic))
src.icon_state = "window[junction]"
else if (istype(src,/obj/structure/window/reinforced))
src.icon_state = "rwindow[junction]"
if (istype(src,/obj/structure/window/reinforced/tinted))
src.icon_state = "twindow[junction]"
else
src.icon_state = "rwindow[junction]"
return