summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-05 14:23:39 +0200
committeraap <aap@papnet.eu>2019-07-05 14:23:39 +0200
commit396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb (patch)
tree5fb23c404383f4b7436410bd1816498f27c2cd4a /src/control
parentfixed rand (thanks nick) (diff)
downloadre3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar.gz
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar.bz2
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar.lz
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar.xz
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.tar.zst
re3-396b43cbd4f5495c6c3c555d6b58ccfdbbf964fb.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Population.cpp1
-rw-r--r--src/control/Population.h4
-rw-r--r--src/control/Replay.cpp2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/control/Population.cpp b/src/control/Population.cpp
index 9af68670..1ae5962d 100644
--- a/src/control/Population.cpp
+++ b/src/control/Population.cpp
@@ -10,3 +10,4 @@ float &CPopulation::PedDensityMultiplier = *(float*)0x5FA56C;
WRAPPER void CPopulation::UpdatePedCount(uint32, bool) { EAXJMP(0x4F5A60); }
WRAPPER void CPopulation::DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool) { EAXJMP(0x4F6200); }
+WRAPPER CPed *CPopulation::AddPedInCar(CVehicle *vehicle) { EAXJMP(0x4F5800); }
diff --git a/src/control/Population.h b/src/control/Population.h
index 4169261a..6bd2e3ae 100644
--- a/src/control/Population.h
+++ b/src/control/Population.h
@@ -1,6 +1,7 @@
#pragma once
-#include "PedType.h"
+class CPed;
+class CVehicle;
struct PedGroup
{
@@ -17,4 +18,5 @@ public:
static void UpdatePedCount(uint32, bool);
static void DealWithZoneChange(eLevelName oldLevel, eLevelName newLevel, bool);
+ static CPed *AddPedInCar(CVehicle *vehicle);
};
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index a2164f6b..12fce4ef 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -717,7 +717,7 @@ void CReplay::ProcessCarUpdate(CVehicle *vehicle, float interpolation, CAddressI
car->m_DamageManager.SetDoorStatus(CDamageManager::CAR_DOOR_RR, 3);
car->SetDoorDamage(12, CDamageManager::CAR_DOOR_RR, true);
}
- vehicle->m_veh_flagA10 = true;
+ vehicle->bEngineOn = true;
if (vehicle->IsCar())
((CAutomobile*)vehicle)->m_nDriveWheelsOnGround = 4;
CWorld::Remove(vehicle);