1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

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
2 changed files with 3 additions and 2 deletions

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()