Merge pull request #7156 from VOREStation/pol-sfalay

Fix sofa icon layering
This commit is contained in:
Atermonera
2020-05-16 19:22:51 -07:00
committed by GitHub
@@ -247,6 +247,14 @@
else
name = "[sofa_material] [initial(name)]"
/obj/structure/bed/chair/update_layer()
// Corner east/west should be on top of mobs, any other state's north should be.
if((icon_state == "sofacorner" && ((dir & EAST) || (dir & WEST))) || (icon_state != "sofacorner" && (dir & NORTH)))
plane = MOB_PLANE
layer = MOB_LAYER + 0.1
else
reset_plane_and_layer()
/obj/structure/bed/chair/sofa/left
icon_state = "sofaend_left"
base_icon = "sofaend_left"