Merge pull request #3273 from Citadel-Station-13/upstream-merge-31493

[MIRROR] Fixes closet layer
This commit is contained in:
LetterJay
2017-10-10 05:55:28 -04:00
committed by GitHub
@@ -4,6 +4,7 @@
icon = 'icons/obj/closet.dmi'
icon_state = "generic"
density = TRUE
layer = BELOW_OBJ_LAYER
var/icon_door = null
var/icon_door_override = FALSE //override to have open overlay use icon different to its base's
var/secure = FALSE //secure locker or not, also used if overriding a non-secure locker with a secure door overlay to add fancy lights
@@ -53,6 +54,7 @@
/obj/structure/closet/update_icon()
cut_overlays()
if(!opened)
layer = OBJ_LAYER
if(icon_door)
add_overlay("[icon_door]_door")
else
@@ -69,6 +71,7 @@
add_overlay("off")
else
layer = BELOW_OBJ_LAYER
if(icon_door_override)
add_overlay("[icon_door]_open")
else