Fix CalculateDistance
This commit is contained in:
parent
c7e9ddb566
commit
5289f398ea
@ -518,11 +518,11 @@ cAudioManager::AgeCrimes()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cAudioManager::CalculateDistance(bool &condition, float dist)
|
cAudioManager::CalculateDistance(bool &distCalculated, float dist)
|
||||||
{
|
{
|
||||||
if(condition == false) {
|
if(!distCalculated) {
|
||||||
m_sQueueSample.m_fDistance = Sqrt(dist);
|
m_sQueueSample.m_fDistance = Sqrt(dist);
|
||||||
condition = true;
|
distCalculated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user