Fix CalculateDistance

This commit is contained in:
Filip Gawin 2019-12-01 00:32:47 +01:00
parent c7e9ddb566
commit 5289f398ea

View file

@ -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;
}
}