1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Ensure rain sound reloads when asset packs are reloaded

This commit is contained in:
Ted John
2022-09-21 21:33:02 +01:00
parent 6f7e571c08
commit 14dddde5c0

View File

@@ -317,7 +317,7 @@ static void climate_update_weather_sound()
if (gClimateCurrent.WeatherEffect == WeatherEffectType::Rain || gClimateCurrent.WeatherEffect == WeatherEffectType::Storm)
{
// Start playing the weather sound
if (_weatherSoundChannel == nullptr)
if (_weatherSoundChannel == nullptr || _weatherSoundChannel->IsDone())
{
_weatherSoundChannel = CreateAudioChannel(SoundId::Rain, true, DStoMixerVolume(-4000));
}