aboutsummaryrefslogtreecommitdiff
path: root/client/audio/sound.gd
diff options
context:
space:
mode:
authorBigBrotherNii <nicochr1004@gmail.com>2024-07-24 17:21:24 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-25 11:25:41 +0200
commita2c5fa06d3c36ddd71d96beda79605145e061e5e (patch)
tree9471a0a583ce1e5f4cb4a7298149b5540191c60a /client/audio/sound.gd
parent7e4ad7a70a2636c117879021f61b3a2025a16743 (diff)
downloadhurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar
hurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar.bz2
hurrycurry-a2c5fa06d3c36ddd71d96beda79605145e061e5e.tar.zst
added lobby music
Diffstat (limited to 'client/audio/sound.gd')
-rw-r--r--client/audio/sound.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/audio/sound.gd b/client/audio/sound.gd
index 13fde6a2..af23f0cd 100644
--- a/client/audio/sound.gd
+++ b/client/audio/sound.gd
@@ -29,7 +29,9 @@ func play_music(music : String): # If music == "stop", this stops all music
for stream in music_node.get_children():
stream.stop()
- if music != "stop":
+ if music_node.get_node(music) == null:
+ return
+ else:
music_node.get_node(music).play()
func set_volume(value:float):