summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoman Masanin <36927roma@gmail.com>2020-10-25 22:14:59 +0100
committerRoman Masanin <36927roma@gmail.com>2020-10-25 22:14:59 +0100
commit96ccb1333b2d8cabe914c4a9f65a640f3db81c56 (patch)
tree11f0224e1fee449f40338a75fe10f6f373a49210 /src
parentprocessVehicleOneShots (diff)
downloadre3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar.gz
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar.bz2
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar.lz
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar.xz
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.tar.zst
re3-96ccb1333b2d8cabe914c4a9f65a640f3db81c56.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 9626cefc..436c5ba9 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2651,7 +2651,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
break;
}
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 22;
+ m_sQueueSample.m_nCounter = event + 22;
if (params->m_pVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI)
m_sQueueSample.m_nFrequency = 28062;
else
@@ -2687,7 +2687,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
break;
}
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- m_sQueueSample.m_nCounter = m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] + 10;
+ m_sQueueSample.m_nCounter = event + 10;
if (params->m_pVehicle->GetVehicleAppearance() == VEHICLE_APPEARANCE_HELI)
m_sQueueSample.m_nFrequency = 23459;
else
@@ -2716,7 +2716,7 @@ cAudioManager::ProcessVehicleOneShots(cVehicleParams *params)
const float SOUND_INTENSITY = 35.0f;
static uint8 WheelIndex = 82;
maxDist = SQR(SOUND_INTENSITY);
- if (m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_awAudioEvent[i] == SOUND_CAR_JUMP_2) {
+ if (event == SOUND_CAR_JUMP_2) {
m_sQueueSample.m_nSampleIndex = SFX_TYRE_BURST_B;
emittingVol = Max(50.0f, 2 * (60.0f * m_asAudioEntities[m_sQueueSample.m_nEntityIndex].m_afVolume[i]));
} else {