mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +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);
|
SetOutdoorAmbienceTrack(iSound);
|
||||||
}
|
}
|
||||||
else if(iSound < 2000)
|
else if(iSound < 2000)
|
||||||
|
{
|
||||||
|
ScriptCommand(&play_sound, fX, fY, fZ, iSound);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
ScriptCommand(&unload_wav, 1);
|
ScriptCommand(&unload_wav, 1);
|
||||||
ScriptCommand(&load_wav, 1, iSound);
|
ScriptCommand(&load_wav, 1, iSound);
|
||||||
ScriptCommand(&set_wav_at_location, 1, fX, fY, fZ);
|
ScriptCommand(&set_wav_at_location, 1, fX, fY, fZ);
|
||||||
field_0 = 1;
|
field_0 = 1;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ScriptCommand(&play_sound, fX, fY, fZ, iSound);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user