mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Restart title music if necessary
This commit is contained in:
@@ -1556,7 +1556,8 @@ void start_title_music()
|
||||
break;
|
||||
}
|
||||
|
||||
if ((RCT2_GLOBAL(0x009AF284, uint32) & (1 << 0)) && RCT2_GLOBAL(0x009AF59D, uint8) & 1 && RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & 1) {
|
||||
if ((RCT2_GLOBAL(0x009AF284, uint32) & (1 << 0)) && RCT2_GLOBAL(0x009AF59D, uint8) & 1
|
||||
&& RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_TITLE_DEMO) {
|
||||
if (!RCT2_GLOBAL(0x009AF600, uint8)) {
|
||||
#ifdef USE_MIXER
|
||||
gTitleMusicChannel = Mixer_Play_Music(musicPathId);
|
||||
|
||||
@@ -566,6 +566,10 @@ static void window_options_dropdown()
|
||||
config_save_default();
|
||||
window_invalidate(w);
|
||||
}
|
||||
|
||||
stop_title_music();
|
||||
if (dropdownIndex != 0)
|
||||
start_title_music();
|
||||
break;
|
||||
case WIDX_CURRENCY_DROPDOWN:
|
||||
gConfigGeneral.currency_format = (sint8)dropdownIndex;
|
||||
|
||||
Reference in New Issue
Block a user