summaryrefslogtreecommitdiff
path: root/src/peds
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-07-12 00:11:11 +0300
committererorcun <erorcunerorcun@hotmail.com.tr>2021-08-01 13:56:09 +0300
commit192190769db6faeafb32e951cf4db6e021ac833e (patch)
treedc0a6f4c23ac4afa7f065bc198c29253ad902b04 /src/peds
parente80cbf8bb2abbe3edb7a604ae5b0af366bf10a9a (diff)
Add ped and car density slider to menu, remove dumb collision "optimization"
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Population.cpp5
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())