mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
(svn r23430) -Fix (r23219): also consider the old directories when playing a song
This commit is contained in:
parent
8b5d315d2a
commit
634796b860
@ -178,8 +178,9 @@ static void MusicVolumeChanged(byte new_vol)
|
||||
static void DoPlaySong()
|
||||
{
|
||||
char filename[MAX_PATH];
|
||||
FioFindFullPath(filename, lengthof(filename), BASESET_DIR,
|
||||
BaseMusic::GetUsedSet()->files[_music_wnd_cursong - 1].filename);
|
||||
if (FioFindFullPath(filename, lengthof(filename), BASESET_DIR, BaseMusic::GetUsedSet()->files[_music_wnd_cursong - 1].filename) == NULL) {
|
||||
FioFindFullPath(filename, lengthof(filename), OLD_GM_DIR, BaseMusic::GetUsedSet()->files[_music_wnd_cursong - 1].filename);
|
||||
}
|
||||
_music_driver->PlaySong(filename);
|
||||
SetWindowDirty(WC_MUSIC_WINDOW, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user