mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Match CAudio::PlaySound(...)
This commit is contained in:
parent
e9607a89f9
commit
c9d437f4ed
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user