mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 19:05:41 +00:00
Fix CalculateDistance
This commit is contained in:
parent
c7e9ddb566
commit
5289f398ea
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue