summaryrefslogtreecommitdiff
path: root/client/map/progress.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/progress.gd')
-rw-r--r--client/map/progress.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/map/progress.gd b/client/map/progress.gd
index d78c9e66..96edb574 100644
--- a/client/map/progress.gd
+++ b/client/map/progress.gd
@@ -47,6 +47,9 @@ func update(new_position: float, new_speed: float, new_warn: bool):
var mat: ShaderMaterial = get_active_material(0)
mat.set_shader_parameter("progress", position_)
mat.set_shader_parameter("bad", warn)
+
+ # Always play ding sound if item is making progress while warn
+ if warn and speed > 0.: ding_node.play_random()
func _process(delta: float):
position_ += delta * speed