diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-02 17:23:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 17:23:06 +0200 |
commit | ae1deb2209a5345d51b13c9534a2ef9877cbe09b (patch) | |
tree | 93589ebfc2b9ef71b71afe9a45369d55127807eb /src/peds | |
parent | Fix radio scroll when player controls disabled (diff) | |
parent | Fix R* optimization that prevents peds to spawn (diff) | |
download | re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.gz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.bz2 re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.lz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.xz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.zst re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.zip |
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Population.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index b9347256..65bc80da 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -40,8 +40,8 @@ bool CPopulation::ms_bGivePedsWeapons; int32 CPopulation::m_AllRandomPedsThisType = -1; float CPopulation::PedDensityMultiplier = 1.0f; uint32 CPopulation::ms_nTotalMissionPeds; -int32 CPopulation::MaxNumberOfPedsInUse = 25; -int32 CPopulation::MaxNumberOfPedsInUseInterior = 40; +int32 CPopulation::MaxNumberOfPedsInUse = DEFAULT_MAX_NUMBER_OF_PEDS; +int32 CPopulation::MaxNumberOfPedsInUseInterior = DEFAULT_MAX_NUMBER_OF_PEDS_INTERIOR; uint32 CPopulation::ms_nNumCivMale; uint32 CPopulation::ms_nNumCivFemale; uint32 CPopulation::ms_nNumCop; @@ -1095,6 +1095,7 @@ CPopulation::ManagePopulation(void) } float dist = (ped->GetPosition() - playerPos).Magnitude2D(); + bool pedIsFarAway = false; if (ped->IsGangMember()) |