mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +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->selected_playlist = pl;
|
||||||
this->playlist_position = 0;
|
this->playlist_position = 0;
|
||||||
|
|
||||||
if (_settings_client.music.shuffle) {
|
if (_settings_client.music.shuffle) this->Shuffle();
|
||||||
this->Shuffle();
|
if (_settings_client.music.playing) this->Play();
|
||||||
/* Shuffle() will also Play() if necessary, only start once */
|
|
||||||
} else if (_settings_client.music.playing) {
|
|
||||||
this->Play();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
InvalidateWindowData(WC_MUSIC_TRACK_SELECTION, 0);
|
InvalidateWindowData(WC_MUSIC_TRACK_SELECTION, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user