Fix #18994: Title music doesn't start after enabling master volume (#19621)

This commit is contained in:
Rik Smeets 2023-03-11 17:30:40 +01:00 committed by GitHub
parent 75fb313e5a
commit ac2afdcfaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,7 @@
- Fix: [#18911] Mini Golf station does not draw correctly from all angles.
- Fix: [#18971] New Game does not prompt for save before quitting.
- Fix: [#18986] [Plugin] Sending remote scripts larger than 63KiB crashing all clients.
- Fix: [#18994] Title music doesnt start after enabling master volume.
- Fix: [#19025] Park loan behaves inconsistently with non-round and out-of-bounds values.
- Fix: [#19026] Park loan is clamped to a 32-bit integer.
- Fix: [#19068] Guests may not join queues correctly.

View File

@ -398,11 +398,9 @@ namespace OpenRCT2::Audio
if (gConfigSound.MasterSoundEnabled)
{
Resume();
PlayTitleMusic();
}
else
{
StopTitleMusic();
Pause();
}
@ -416,11 +414,13 @@ namespace OpenRCT2::Audio
RideAudio::StopAllChannels();
PeepStopCrowdNoise();
ClimateStopWeatherSound();
StopTitleMusic();
}
void Resume()
{
gGameSoundsOff = false;
PlayTitleMusic();
}
void StopVehicleSounds()