Fix heli sound

This commit is contained in:
Sergeanur 2021-09-02 12:25:52 +03:00
parent 669c8c8988
commit abe6c22f56

View File

@ -1288,13 +1288,12 @@ cAudioManager::ProcessCarHeli(cVehicleParams& params)
if (hunterBool) { if (hunterBool) {
m_sQueueSample.m_nSampleIndex = SFX_HELI_APACHE_4; m_sQueueSample.m_nSampleIndex = SFX_HELI_APACHE_4;
m_sQueueSample.m_nBankIndex = SFX_BANK_0; m_sQueueSample.m_nBankIndex = SFX_BANK_0;
freq = 3000 * propellerSpeed + 30000; m_sQueueSample.m_nFrequency = 3000 * propellerSpeed + 30000;
} else { } else {
m_sQueueSample.m_nSampleIndex = SFX_CAR_HELI_STA; m_sQueueSample.m_nSampleIndex = SFX_CAR_HELI_STA;
m_sQueueSample.m_nBankIndex = SFX_BANK_0; 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_nCounter = 12;
m_sQueueSample.m_bIs2D = FALSE; m_sQueueSample.m_bIs2D = FALSE;
m_sQueueSample.m_nPriority = 1; m_sQueueSample.m_nPriority = 1;