From 14dddde5c03906856afe248fbda205a06e675a3d Mon Sep 17 00:00:00 2001 From: Ted John Date: Wed, 21 Sep 2022 21:33:02 +0100 Subject: [PATCH] Ensure rain sound reloads when asset packs are reloaded --- src/openrct2/world/Climate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/world/Climate.cpp b/src/openrct2/world/Climate.cpp index 370764d32b..f77f75e147 100644 --- a/src/openrct2/world/Climate.cpp +++ b/src/openrct2/world/Climate.cpp @@ -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)); }