diff options
author | aap <aap@papnet.eu> | 2019-07-05 14:34:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 14:34:41 +0200 |
commit | 9d13ab28a8a625a60a38729129c8d2c8e02e7b8f (patch) | |
tree | 86d117096a709da2f395c3c6145fc1f7791e3140 /src/control | |
parent | More AudioManager (diff) | |
parent | implemented some CVehicle functions (diff) | |
download | re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar.gz re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar.bz2 re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar.lz re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar.xz re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.tar.zst re3-9d13ab28a8a625a60a38729129c8d2c8e02e7b8f.zip |
Diffstat (limited to 'src/control')
-rw-r--r-- | src/control/Population.cpp | 1 | ||||
-rw-r--r-- | src/control/Population.h | 4 | ||||
-rw-r--r-- | src/control/Replay.cpp | 2 |
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); |