mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 10:40:00 +00:00
Fix CalculateDistance
This commit is contained in:
parent
c7e9ddb566
commit
5289f398ea
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue