railing/handrailing overlay fix

This commit is contained in:
Kabramen
2022-06-07 15:25:52 -03:00
parent ee3260b973
commit 3a66df37c5
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."