diff options
Diffstat (limited to 'client/audio')
| -rw-r--r-- | client/audio/sound.gd | 4 | ||||
| -rw-r--r-- | client/audio/sound.tscn | 4 | 
2 files changed, 7 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): diff --git a/client/audio/sound.tscn b/client/audio/sound.tscn index a8524e71..aac5e159 100644 --- a/client/audio/sound.tscn +++ b/client/audio/sound.tscn @@ -18,3 +18,7 @@ stream = ExtResource("3_qft2s")  [node name="Music" type="Node" parent="."]  [node name="MainMenu" type="AudioStreamPlayer" parent="Music"] +volume_db = 1.0 + +[node name="Lobby" type="AudioStreamPlayer" parent="Music"] +volume_db = -2.5 | 
