summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 9461af66..54d7ad59 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -1288,13 +1288,12 @@ cAudioManager::ProcessCarHeli(cVehicleParams& params)
if (hunterBool) {
m_sQueueSample.m_nSampleIndex = SFX_HELI_APACHE_4;
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- freq = 3000 * propellerSpeed + 30000;
+ m_sQueueSample.m_nFrequency = 3000 * propellerSpeed + 30000;
} else {
m_sQueueSample.m_nSampleIndex = SFX_CAR_HELI_STA;
m_sQueueSample.m_nBankIndex = SFX_BANK_0;
- freq = 3000 * propellerSpeed + 6000;
+ m_sQueueSample.m_nFrequency = 3000 * propellerSpeed + 6000;
}
- m_sQueueSample.m_nFrequency = freq;
m_sQueueSample.m_nCounter = 12;
m_sQueueSample.m_bIs2D = FALSE;
m_sQueueSample.m_nPriority = 1;