[saco] Match CAudio::PlaySound(...)

This commit is contained in:
RD42 2024-08-02 22:25:36 +08:00
parent e9607a89f9
commit c9d437f4ed

View File

@ -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);
}
}
//-----------------------------------------------------------