summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-08 22:29:43 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-08 22:29:43 +0200
commit7e753c259680a13c656bdc6c86d99a4891616474 (patch)
tree7cc9674c62784eba25109dee499bd73056a4e62f /src/peds/Ped.cpp
parentfix (diff)
downloadre3-7e753c259680a13c656bdc6c86d99a4891616474.tar
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.gz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.bz2
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.lz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.xz
re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.zst
re3-7e753c259680a13c656bdc6c86d99a4891616474.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 3b95dfdd..8a86360b 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -402,6 +402,10 @@ CPed::~CPed(void)
}
if (m_pFire)
m_pFire->Extinguish();
+ if (bCarPassenger)
+ CPopulation::ms_nTotalCarPassengerPeds--;
+ if (bMiamiViceCop)
+ CPopulation::NumMiamiViceCops--;
CPopulation::UpdatePedCount((ePedType)m_nPedType, true);
DMAudio.DestroyEntity(m_audioEntityId);
}
@@ -605,6 +609,10 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
bSomeVCflag1 = false;
#endif
+ bCarPassenger = false;
+ bMiamiViceCop = false;
+ bDeadPedInFrontOfCar = false;
+
if ((CGeneral::GetRandomNumber() & 3) == 0)
bHasACamera = true;