Merge pull request #26587 from MrPerson/cracks_are_forming_in_my_otherwise_flawless_code

Fixes windows going invisible
This commit is contained in:
Leo
2017-04-25 20:14:17 -03:00
committed by GitHub
+3 -3
View File
@@ -18,7 +18,7 @@
var/fulltile = 0
var/glass_type = /obj/item/stack/sheet/glass
var/glass_amount = 1
var/static/mutable_appearance/crack_overlay = mutable_appearance('icons/obj/structures.dmi')
var/mutable_appearance/crack_overlay
var/list/debris = list()
can_be_unanchored = 1
resistance_flags = ACID_PROOF
@@ -377,10 +377,10 @@
if(smooth)
queue_smooth(src)
cut_overlays()
cut_overlay(crack_overlay)
if(ratio > 75)
return
crack_overlay.icon_state = "damage[ratio]"
crack_overlay = mutable_appearance('icons/obj/structures.dmi', "damage[ratio]", -(layer+0.1))
add_overlay(crack_overlay)
/obj/structure/window/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume)