diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-07-31 19:43:52 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-07-31 19:43:52 +0200 |
commit | a481b900b948f5e9c40e334b789f663f7d6d5932 (patch) | |
tree | 28484bf4bcc267a941b7746fafbce7c57938eb18 /src/peds/Population.cpp | |
parent | Merge pull request #1259 from aap/lcs (diff) | |
parent | Allow sector ped count to exceed gap-list size (diff) | |
download | re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar.gz re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar.bz2 re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar.lz re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar.xz re3-a481b900b948f5e9c40e334b789f663f7d6d5932.tar.zst re3-a481b900b948f5e9c40e334b789f663f7d6d5932.zip |
Diffstat (limited to 'src/peds/Population.cpp')
-rw-r--r-- | src/peds/Population.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 0f68c679..75c454b6 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -1105,8 +1105,9 @@ CPopulation::ManagePopulation(void) if (PedCreationDistMultiplier() * (PED_REMOVE_DIST_SPECIAL * TheCamera.GenerationDistMultiplier) < dist || (!ped->bCullExtraFarAway && PedCreationDistMultiplier() * PED_REMOVE_DIST * TheCamera.GenerationDistMultiplier < dist)) { pedIsFarAway = true; - - } else if (PedCreationDistMultiplier() * (MIN_CREATION_DIST + CREATION_RANGE) * OFFSCREEN_CREATION_MULT < dist) { + } +#ifndef EXTENDED_OFFSCREEN_DESPAWN_RANGE + else if (PedCreationDistMultiplier() * (MIN_CREATION_DIST + CREATION_RANGE) * OFFSCREEN_CREATION_MULT < dist) { if (CTimer::GetTimeInMilliseconds() > ped->m_nExtendedRangeTimer && !ped->GetIsOnScreen()) { if (TheCamera.Cams[TheCamera.ActiveCam].Mode != CCam::MODE_SNIPER && TheCamera.Cams[TheCamera.ActiveCam].Mode != CCam::MODE_SNIPER_RUNABOUT @@ -1118,7 +1119,9 @@ CPopulation::ManagePopulation(void) } } - } else { + } +#endif + else { ped->m_nExtendedRangeTimer = ped->m_nPedType == PEDTYPE_COP ? CTimer::GetTimeInMilliseconds() + 10000 : CTimer::GetTimeInMilliseconds() + 4000; } |