Merge pull request #8468 from Verkister/patch-88

Fixes catwalks making footsteps on everything
This commit is contained in:
Spookerton
2022-04-01 18:25:02 +01:00
committed by VirgoBot
parent 29ad6e8c73
commit 8aee6f371f
+2 -2
View File
@@ -128,9 +128,9 @@
new /obj/item/stack/rods(get_turf(src))
Destroy()
/obj/structure/catwalk/Crossed()
/obj/structure/catwalk/Crossed(atom/movable/AM)
. = ..()
if(isliving(usr) && !usr.is_incorporeal())
if(isliving(AM) && !AM.is_incorporeal())
playsound(src, pick('sound/effects/footstep/catwalk1.ogg', 'sound/effects/footstep/catwalk2.ogg', 'sound/effects/footstep/catwalk3.ogg', 'sound/effects/footstep/catwalk4.ogg', 'sound/effects/footstep/catwalk5.ogg'), 25, 1)
/obj/effect/catwalk_plated