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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user