diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-28 08:39:57 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-28 08:39:57 +0200 |
commit | 8960ffaf0ba8976f17110401879f943d69d0506d (patch) | |
tree | 048591db01264348622577f36f4fb0cca5efd6c4 /src/audio/AudioManager.cpp | |
parent | Ped comments ordering and type fix + vice function(s) fix (diff) | |
download | re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar.gz re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar.bz2 re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar.lz re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar.xz re3-8960ffaf0ba8976f17110401879f943d69d0506d.tar.zst re3-8960ffaf0ba8976f17110401879f943d69d0506d.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index b0b3f49d..e4f8a023 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -664,7 +664,7 @@ cAudioManager::AddReflectionsToRequestedQueue() for (uint32 i = 0; i < ARRAY_SIZE(m_afReflectionsDistances); i++) { if ( CTimer::GetIsSlowMotionActive() ) - m_afReflectionsDistances[i] = GetRandomNumberInRange(i % 4, 0, 2) * 100.f / 8.f; + m_afReflectionsDistances[i] = (m_anRandomTable[i % 4] % 3) * 100.f / 8.f; reflectionDistance = m_afReflectionsDistances[i]; if (reflectionDistance > 0.0f && reflectionDistance < 100.f && reflectionDistance < m_sQueueSample.m_fSoundIntensity) { |