mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fix sofa icon layering
This commit is contained in:
@@ -234,6 +234,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"
|
||||
|
||||
Reference in New Issue
Block a user