Merge pull request #1635 from Kabramen/railing/handrailing-overlay-fix

railing/handrailing overlay fix
This commit is contained in:
Dahlular
2022-06-07 12:48:34 -06:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
@@ -16,6 +16,7 @@
var/heat_resistance = 800
var/health = 70
var/maxhealth = 70
layer = BELOW_MOB_LAYER
resistance_flags = ACID_PROOF
@@ -164,6 +165,14 @@
usr.visible_message("<span class='warning'>[user] climbed over \the [src]!</span>")
usr.do_twist(targetangle = 45, timer = 8)
/obj/structure/railing/Initialize(mapload) //mobs will show under the south railing sprite, thanks Cyanosis for helping with the fix
. = ..()
if(!mapload)
return
if(!(dir & SOUTH))
return
layer = ABOVE_MOB_LAYER
/obj/structure/railing/handrail
name = "handrail"
desc = "A waist high handrail, perhaps you could climb over it."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB