mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +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))
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: TheGreyWolf
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Fixed carts to no longer make noise when they don't move, such as trying to push them past a wall."
|
||||
Reference in New Issue
Block a user