Skip to content

Commit

Permalink
changing set music to only play when different music instead of diffe…
Browse files Browse the repository at this point in the history
…rent name music
  • Loading branch information
Notgoyome committed Sep 9, 2024
1 parent cd212d8 commit 2ea6492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/autoload/music_manager.gd
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ func _ready():
func set_music(music_name: String):
if music_name == current_music_name:
return
if streams[music_name] == streams[current_music_name]:
return

var stream: AudioStream = streams[music_name]
if not stream:
Expand Down

0 comments on commit 2ea6492

Please sign in to comment.