Changeset - r18575:6838f6810973
[Not reviewed]
master
0 1 0
glx - 12 years ago 2011-12-04 14:17:51
glx@openttd.org
(svn r23430) -Fix (r23219): also consider the old directories when playing a song
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/music_gui.cpp
Show inline comments
 
@@ -178,8 +178,9 @@ static void MusicVolumeChanged(byte new_
 
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);
 
}
0 comments (0 inline, 0 general)