mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
- prevent wheel curb hit sound interrupting other sounds
This commit is contained in:
parent
fce428ecf5
commit
1704f8b03f
@ -919,12 +919,15 @@ void AddWheelForcesDriver1(CAR_DATA* cp, CAR_LOCALS* cl)
|
||||
{
|
||||
if (ABS(newCompression - oldCompression) > 12 && (i & 1U) != 0)
|
||||
{
|
||||
chan = GetFreeChannel();
|
||||
if (NumPlayers > 1 && NoPlayerControl == 0)
|
||||
SetPlayerOwnsChannel(chan, player_id);
|
||||
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);
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user