diff --git a/saco/game/audio.cpp b/saco/game/audio.cpp index 0a70370..c2914c5 100644 --- a/saco/game/audio.cpp +++ b/saco/game/audio.cpp @@ -101,16 +101,16 @@ void CAudio::PlaySound(int iSound, float fX, float fY, float fZ) SetOutdoorAmbienceTrack(iSound); } else if(iSound < 2000) + { + ScriptCommand(&play_sound, fX, fY, fZ, iSound); + } + else { ScriptCommand(&unload_wav, 1); ScriptCommand(&load_wav, 1, iSound); ScriptCommand(&set_wav_at_location, 1, fX, fY, fZ); field_0 = 1; - } - else - { - ScriptCommand(&play_sound, fX, fY, fZ, iSound); - } + } } //-----------------------------------------------------------