Fix order of math operations on integers (fires)

This commit is contained in:
Filip Gawin 2020-03-22 19:32:01 +01:00 committed by GitHub
parent 0e817230af
commit da2d25c020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3651,7 +3651,7 @@ void cAudioManager::ProcessFires(int32)
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
emittingVol = 100;
m_sQueueSample.m_nFrequency =
8 / 10 * SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE);
8 * SampleManager.GetSampleBaseFrequency(SFX_CAR_ON_FIRE) / 10;
m_sQueueSample.m_nFrequency += i * ((uint32)m_sQueueSample.m_nFrequency >> 6);
m_sQueueSample.field_16 = 6;
break;