mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
The change-playlist function relied on toggling shuffle to restart playing which is no longer the case, so always handle it when changing playlist instead.
This commit is contained in:
parent
e3924f3231
commit
519fe33175
@ -156,12 +156,8 @@ void MusicSystem::ChangePlaylist(PlaylistChoices pl)
|
||||
this->selected_playlist = pl;
|
||||
this->playlist_position = 0;
|
||||
|
||||
if (_settings_client.music.shuffle) {
|
||||
this->Shuffle();
|
||||
/* Shuffle() will also Play() if necessary, only start once */
|
||||
} else if (_settings_client.music.playing) {
|
||||
this->Play();
|
||||
}
|
||||
if (_settings_client.music.shuffle) this->Shuffle();
|
||||
if (_settings_client.music.playing) this->Play();
|
||||
}
|
||||
|
||||
InvalidateWindowData(WC_MUSIC_TRACK_SELECTION, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user