summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio')
-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 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;
}
}