mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user