mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-08-12 09:44:36 +02:00
Fix order of math operations on integers (fires)
This commit is contained in:
@@ -3651,7 +3651,7 @@ void cAudioManager::ProcessFires(int32)
|
|||||||
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
m_sQueueSample.m_nSampleIndex = SFX_CAR_ON_FIRE;
|
||||||
emittingVol = 100;
|
emittingVol = 100;
|
||||||
m_sQueueSample.m_nFrequency =
|
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.m_nFrequency += i * ((uint32)m_sQueueSample.m_nFrequency >> 6);
|
||||||
m_sQueueSample.field_16 = 6;
|
m_sQueueSample.field_16 = 6;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user