diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-17 12:58:48 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-17 12:58:48 +0200 |
commit | 16ff379ebeca2092e9609eb3163a6bd2ffd68060 (patch) | |
tree | 75d6ec09e36174454e8bcf66867b9b0ea46ada2b /src/audio/AudioCollision.cpp | |
parent | Remove FIX_BUGS that wasn't needed (diff) | |
download | re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar.gz re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar.bz2 re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar.lz re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar.xz re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.tar.zst re3-16ff379ebeca2092e9609eb3163a6bd2ffd68060.zip |
Diffstat (limited to 'src/audio/AudioCollision.cpp')
-rw-r--r-- | src/audio/AudioCollision.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio/AudioCollision.cpp b/src/audio/AudioCollision.cpp index 1b72764e..02231773 100644 --- a/src/audio/AudioCollision.cpp +++ b/src/audio/AudioCollision.cpp @@ -203,7 +203,7 @@ cAudioManager::SetUpOneShotCollisionSound(const cAudioCollision &col) m_sQueueSample.m_fDistance = Sqrt(col.m_fDistance); m_sQueueSample.m_nVolume = ComputeVolume(emittingVol, CollisionSoundIntensity, m_sQueueSample.m_fDistance); - if(m_sQueueSample.m_nVolume) { + if(m_sQueueSample.m_nVolume > 0) { m_sQueueSample.m_nSampleIndex = gOneShotCol[s1]; switch(m_sQueueSample.m_nSampleIndex) { case SFX_COL_TARMAC_1: @@ -269,7 +269,7 @@ cAudioManager::SetUpOneShotCollisionSound(const cAudioCollision &col) m_sQueueSample.m_SoundIntensity = CollisionSoundIntensity; m_sQueueSample.m_bReleasingSoundFlag = TRUE; m_sQueueSample.m_bReverbFlag = TRUE; - m_sQueueSample.m_bRequireReflection = FALSE; + SET_SOUND_REFLECTION(FALSE); AddSampleToRequestedQueue(); } } @@ -285,7 +285,7 @@ cAudioManager::SetUpLoopingCollisionSound(const cAudioCollision &col, uint8 coun m_sQueueSample.m_fDistance = Sqrt(col.m_fDistance); m_sQueueSample.m_nVolume = ComputeVolume(emittingVol, CollisionSoundIntensity, m_sQueueSample.m_fDistance); - if(m_sQueueSample.m_nVolume) { + if(m_sQueueSample.m_nVolume > 0) { m_sQueueSample.m_nCounter = counter; m_sQueueSample.m_vecPos = col.m_vecPosition; m_sQueueSample.m_nBankIndex = SFX_BANK_0; @@ -299,7 +299,7 @@ cAudioManager::SetUpLoopingCollisionSound(const cAudioCollision &col, uint8 coun m_sQueueSample.m_bReleasingSoundFlag = FALSE; m_sQueueSample.m_nReleasingVolumeDivider = 5; m_sQueueSample.m_bReverbFlag = TRUE; - m_sQueueSample.m_bRequireReflection = FALSE; + SET_SOUND_REFLECTION(FALSE); AddSampleToRequestedQueue(); } } |