summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-18 16:31:34 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-18 16:31:34 +0200
commit296e7ed9ad28a681ed22c2afaa518fee79eec1f1 (patch)
treeb979e049c13b35c0989af94e64bfa81c0936d620
parentPort audio changes from master (diff)
downloadre3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar.gz
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar.bz2
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar.lz
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar.xz
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.tar.zst
re3-296e7ed9ad28a681ed22c2afaa518fee79eec1f1.zip
-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 699dec79..10382a77 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -3341,7 +3341,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams& params)
int32 frequency;
CPed *pPed = params.m_pVehicle->pDriver;
if(!pPed)
- break;
+ continue;
if(!pPed->HasWeaponSlot(WEAPONSLOT_SUBMACHINEGUN) || (params.m_pVehicle->GetModelIndex() == MI_PREDATOR && !pPed->IsPedDoingDriveByShooting())) {
sampleIndex = SFX_UZI_LEFT;
frequency = SampleManager.GetSampleBaseFrequency(sampleIndex);