mirror of https://github.com/OpenTTD/OpenTTD
(svn r2228) - Fix: [ 1188986 ] Song in main menu screen should loop when it ends.
parent
762b5f7a75
commit
11dc0e1777
11
music_gui.c
11
music_gui.c
|
@ -181,10 +181,13 @@ void MusicLoop(void)
|
||||||
if (_song_is_active == false)
|
if (_song_is_active == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!_music_driver->is_song_playing() && _game_mode != GM_MENU) {
|
if (!_music_driver->is_song_playing()) {
|
||||||
StopMusic();
|
if (_game_mode != GM_MENU) {
|
||||||
SkipToNextSong();
|
StopMusic();
|
||||||
PlayPlaylistSong();
|
SkipToNextSong();
|
||||||
|
PlayPlaylistSong();
|
||||||
|
} else
|
||||||
|
ResetMusic();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue