mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-23 02:42:38 +01:00
- prevent wheel curb hit sound interrupting other sounds
This commit is contained in:
parent
fce428ecf5
commit
1704f8b03f
@ -919,13 +919,16 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl)
|
||||
{
|
||||
if (ABS(newCompression - oldCompression) > 12 && (i & 1U) != 0)
|
||||
{
|
||||
chan = GetFreeChannel();
|
||||
chan = GetFreeChannel(0);
|
||||
if(chan > -1)
|
||||
{
|
||||
if (NumPlayers > 1 && NoPlayerControl == 0)
|
||||
SetPlayerOwnsChannel(chan, player_id);
|
||||
|
||||
Start3DSoundVolPitch(chan, SOUND_BANK_SFX, 5, cp->hd.where.t[0], cp->hd.where.t[1], cp->hd.where.t[2], -2500, 400);
|
||||
SetChannelPosition3(chan, (VECTOR*)cp->hd.where.t, NULL, -2500, 400, 0);
|
||||
}
|
||||
}
|
||||
|
||||
if (newCompression >= 85)
|
||||
SetPadVibration(*cp->ai.padid, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user