summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-16 09:33:46 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-16 09:33:46 +0200
commitdc28d52d0819eaada9054d5c449979b8d5ccc02d (patch)
tree44c1665f7c4f4cc022d7b88b74597cd274e6e875
parentMerge branch 'miami' into lcs (diff)
downloadre3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar.gz
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar.bz2
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar.lz
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar.xz
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.tar.zst
re3-dc28d52d0819eaada9054d5c449979b8d5ccc02d.zip
-rw-r--r--src/audio/AudioManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 77474c3a..3540a261 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -724,11 +724,11 @@ cAudioManager::AddReflectionsToRequestedQueue()
for (uint32 i = 0; i < ARRAY_SIZE(m_afReflectionsDistances); i++) {
if ( CTimer::GetIsSlowMotionActive() )
- m_afReflectionsDistances[i] = (m_anRandomTable[i % 4] % 3) * 100.f / 8.f;
+ m_afReflectionsDistances[i] = (m_anRandomTable[i % 4] % 3) * 50.f / 8.f;
reflectionDistance = m_afReflectionsDistances[i];
- if (reflectionDistance > 0.0f && reflectionDistance < 100.f && reflectionDistance < m_sQueueSample.m_SoundIntensity) {
- m_sQueueSample.m_nLoopsRemaining = CTimer::GetIsSlowMotionActive() ? (reflectionDistance * 800.f / 1029.f) : (reflectionDistance * 500.f / 1029.f);
+ if (reflectionDistance > 0.0f && reflectionDistance < 50.f && reflectionDistance < m_sQueueSample.m_SoundIntensity) {
+ m_sQueueSample.m_nLoopsRemaining = CTimer::GetIsSlowMotionActive() ? (reflectionDistance * 600.f / 1029.f) : (reflectionDistance * 300.f / 1029.f);
if (m_sQueueSample.m_nLoopsRemaining > 3) {
m_sQueueSample.m_fDistance = m_afReflectionsDistances[i];
SET_EMITTING_VOLUME(emittingVolume);