Fixed carts to not make a noise when pushed into walls (#22506)

fixes https://github.com/Aurorastation/Aurora.3/issues/22359
This commit is contained in:
Casper3667
2026-05-26 17:57:36 +00:00
committed by GitHub
parent 14b6339d5c
commit 58d1241fe7
2 changed files with 13 additions and 6 deletions
+7 -6
View File
@@ -78,12 +78,13 @@ ABSTRACT_TYPE(/obj/structure/cart)
/obj/structure/cart/Move()
. = ..()
if(pulling && (get_dist(src, pulling) > 1))
pulling.pulledby = null
to_chat(pulling, SPAN_WARNING("You lost your grip!"))
pulling = null
if(has_gravity())
playsound(src, movesound, 10, TRUE)
if(.)
if(pulling && (get_dist(src, pulling) > 1))
pulling.pulledby = null
to_chat(pulling, SPAN_WARNING("You lost your grip!"))
pulling = null
if(has_gravity())
playsound(src, movesound, 10, TRUE)
/obj/structure/cart/CtrlClick(var/mob/user)
if(in_range(src, user))