mirror of https://github.com/OpenTTD/OpenTTD
(svn r11281) -Revert(r11259): the problem was not there. In fact, it made it so that no more music were allowed on intro.
-Fix[FS#1331]: Somehow, the notion that the first song must be the ttd theme has been lost while on the intro window. When using shuffling setting (which was saved), the intro song at startup was shuffled too. No more :)release/0.6
parent
feda05d67d
commit
2c330b2dff
|
@ -118,7 +118,8 @@ static void SelectSongToPlay()
|
||||||
}
|
}
|
||||||
} while (_playlists[msf.playlist][i++] != 0 && i < lengthof(_cur_playlist) - 1);
|
} while (_playlists[msf.playlist][i++] != 0 && i < lengthof(_cur_playlist) - 1);
|
||||||
|
|
||||||
if (msf.shuffle) {
|
/* Do not shuffle when on the intro-start window, as the song to play has to be the original TTD Theme*/
|
||||||
|
if (msf.shuffle && _game_mode != GM_MENU) {
|
||||||
i = 500;
|
i = 500;
|
||||||
do {
|
do {
|
||||||
uint32 r = InteractiveRandom();
|
uint32 r = InteractiveRandom();
|
||||||
|
@ -174,11 +175,7 @@ void MusicLoop()
|
||||||
if (!msf.playing && _song_is_active) {
|
if (!msf.playing && _song_is_active) {
|
||||||
StopMusic();
|
StopMusic();
|
||||||
} else if (msf.playing && !_song_is_active) {
|
} else if (msf.playing && !_song_is_active) {
|
||||||
if (_game_mode != GM_MENU) {
|
PlayPlaylistSong();
|
||||||
PlayPlaylistSong();
|
|
||||||
} else {
|
|
||||||
ResetMusic();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_song_is_active) return;
|
if (!_song_is_active) return;
|
||||||
|
|
Loading…
Reference in New Issue