mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #5977: Custom music files not showing up in music list
This commit is contained in:
parent
346c9e1359
commit
d45044239e
|
@ -12,6 +12,7 @@
|
|||
- Fix: [#5880] Leaving bumper cars without building causes assertion.
|
||||
- Fix: [#5920] Placing guest spawn doesn't do anything every 3rd click
|
||||
- Fix: [#5939] Crash when importing 'Six Flags Santa Fe'.
|
||||
- Fix: [#5977] Custom music files not showing up in music list
|
||||
- Improved: [#4301] Leading and trailing whitespace in player name is now removed.
|
||||
- Improved: [#5859] OpenGL rendering performance
|
||||
- Improved: [#5863] Switching drawing engines no longer requires the application to restart.
|
||||
|
|
|
@ -370,6 +370,13 @@ void audio_init_ride_sounds_and_info()
|
|||
{
|
||||
rideMusicInfo->length = 0;
|
||||
}
|
||||
// FIX: Custom ones have no length set and while populating the combo box
|
||||
// they are ignored if 0.
|
||||
if ((m == 36 || m == 37) && rideMusicInfo->length == 0)
|
||||
{
|
||||
// Try to get it.
|
||||
rideMusicInfo->length = fs.GetLength();
|
||||
}
|
||||
}
|
||||
catch (const Exception &)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue