summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-22 20:17:55 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-22 20:17:55 +0200
commitcc13e31264730502d2055912d223a36d3733f9cd (patch)
tree50a7624c33e5c76158fd082a617e0db2854e8782 /src/audio/AudioLogic.cpp
parentMerge branch 'miami' into lcs (diff)
parentPossible fix of RemoveAndAdd crash (diff)
downloadre3-cc13e31264730502d2055912d223a36d3733f9cd.tar
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.gz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.bz2
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.lz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.xz
re3-cc13e31264730502d2055912d223a36d3733f9cd.tar.zst
re3-cc13e31264730502d2055912d223a36d3733f9cd.zip
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r--src/audio/AudioLogic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 2d8cebc2..2e2b7e1f 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2965,7 +2965,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
CPed *pPed = params.m_pVehicle->pDriver;
if(!pPed)
break;
- if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN)) {
+ if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
sampleIndex = SFX_UZI_LEFT;
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);
frequency += RandomDisplacement(frequency / 32);