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

Attempted fix of thunder crash

This commit is contained in:
Duncan Frost
2014-06-23 18:18:59 +01:00
parent e4c4a16d2a
commit cbdffd193c

View File

@@ -228,7 +228,7 @@ static void climate_update_thunder_sound()
if (_thunderStereoEcho) {
// Play thunder on right side
_thunderStereoEcho = 0;
climate_play_thunder(1, _thunderSoundId, _thunderVolume, 10000);
climate_play_thunder(1, _thunderSoundId == SOUND_THUNDER_1 ? SOUND_THUNDER_2 : SOUND_THUNDER_1, _thunderVolume, 10000);
} else if (_thunderTimer != 0) {
climate_update_lightning();
climate_update_thunder();