diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-12-01 00:32:47 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-12-01 20:44:57 +0100 |
commit | 5289f398ea7718d56d38f97e36f1f6386760d5fc (patch) | |
tree | d742ed80a0e4bc93f7767787d9974a55d4c0260d /src/audio/AudioManager.cpp | |
parent | Audio fixes for erorcun review (diff) | |
download | re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar.gz re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar.bz2 re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar.lz re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar.xz re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.tar.zst re3-5289f398ea7718d56d38f97e36f1f6386760d5fc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 19f5ba5b..f823cf19 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -518,11 +518,11 @@ cAudioManager::AgeCrimes() } void -cAudioManager::CalculateDistance(bool &condition, float dist) +cAudioManager::CalculateDistance(bool &distCalculated, float dist) { - if(condition == false) { + if(!distCalculated) { m_sQueueSample.m_fDistance = Sqrt(dist); - condition = true; + distCalculated = true; } } |