diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 15:00:36 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-07-14 15:00:36 +0300 |
commit | e16562aa6deea5e15376afe0fcb3149a04a7b3c7 (patch) | |
tree | 4977eaa5d07dc5236c4b58b01e76265c888f3c08 /src/peds | |
parent | b77a9ce9550d0326c8bd69fdc1474af4f3a1d268 (diff) |
fixed cops
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/CopPed.cpp | 2 | ||||
-rw-r--r-- | src/peds/CopPed.h | 1 | ||||
-rw-r--r-- | src/peds/EmergencyPed.cpp | 2 | ||||
-rw-r--r-- | src/peds/EmergencyPed.h | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp index badcc4de..5bc67e15 100644 --- a/src/peds/CopPed.cpp +++ b/src/peds/CopPed.cpp @@ -3,6 +3,8 @@ #include "CopPed.h" #include "ModelIndices.h" +WRAPPER void CCopPed::ProcessControl() { EAXJMP(0x4C1400); } + CCopPed::CCopPed(eCopType copType) : CPed(PEDTYPE_COP) { m_nCopType = copType; diff --git a/src/peds/CopPed.h b/src/peds/CopPed.h index 17ca111f..162f14a6 100644 --- a/src/peds/CopPed.h +++ b/src/peds/CopPed.h @@ -35,6 +35,7 @@ public: ~CCopPed(); void ClearPursuit(void); + void ProcessControl(void); }; static_assert(sizeof(CCopPed) == 0x558, "CCopPed: error"); diff --git a/src/peds/EmergencyPed.cpp b/src/peds/EmergencyPed.cpp index d4f46b0e..cbcfb403 100644 --- a/src/peds/EmergencyPed.cpp +++ b/src/peds/EmergencyPed.cpp @@ -10,6 +10,8 @@ public: void dtor(void) { CEmergencyPed::~CEmergencyPed(); } }; +WRAPPER void CEmergencyPed::ProcessControl(void) { EAXJMP(0x4C2F10); } + CEmergencyPed::CEmergencyPed(uint32 type) : CPed(type) { switch (type){ diff --git a/src/peds/EmergencyPed.h b/src/peds/EmergencyPed.h index b9d979e3..f55fa4e2 100644 --- a/src/peds/EmergencyPed.h +++ b/src/peds/EmergencyPed.h @@ -15,5 +15,6 @@ public: int32 field_1360; CEmergencyPed(uint32); + void ProcessControl(void); }; static_assert(sizeof(CEmergencyPed) == 0x554, "CEmergencyPed: error"); |