From c9d437f4ed4f3a467e60fc251224cba28ca03429 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Fri, 2 Aug 2024 22:25:36 +0800 Subject: [PATCH] [saco] Match `CAudio::PlaySound(...)` --- saco/game/audio.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); - } + } } //-----------------------------------------------------------