Make song selection more consistent

This commit is contained in:
Luke Hubmayer-Werner 2021-01-15 21:01:58 +10:30
parent ee16b0d55c
commit f3046b8e87
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ func set_menu_mode(mode):
menu_mode_prev_fade_timer = menu_mode_prev_fade_timer_duration menu_mode_prev_fade_timer = menu_mode_prev_fade_timer_duration
func touch_select_song(touchdict): func touch_select_song(touchdict):
if (self.selected_genre == touchdict.genre_idx) and (self.selected_song == touchdict.song_idx): if (self.selected_genre == touchdict.genre_idx) and (self.selected_song_vis == touchdict.song_idx):
SFXPlayer.play(SFXPlayer.Type.NON_POSITIONAL, self, snd_interact, 0.0) SFXPlayer.play(SFXPlayer.Type.NON_POSITIONAL, self, snd_interact, 0.0)
var songslist = genres[genres.keys()[selected_genre]] var songslist = genres[genres.keys()[selected_genre]]
selected_song_key = songslist[selected_song % len(songslist)] selected_song_key = songslist[selected_song % len(songslist)]