diff options
author | aap <aap@papnet.eu> | 2019-07-09 23:49:44 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-09 23:49:44 +0200 |
commit | 702cd0076506dad26abc3c5239a2cfddfa7deb00 (patch) | |
tree | a8f19ccb0e3972f516abeebe85addb4f11ddc601 /src/core | |
parent | yet more CAutomobile (diff) | |
download | re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar.gz re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar.bz2 re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar.lz re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar.xz re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.tar.zst re3-702cd0076506dad26abc3c5239a2cfddfa7deb00.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/PlayerInfo.cpp | 3 | ||||
-rw-r--r-- | src/core/PlayerInfo.h | 1 | ||||
-rw-r--r-- | src/core/re3.cpp | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index 59efe2ae..9d003e76 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -2,4 +2,5 @@ #include "patcher.h" #include "PlayerInfo.h" -WRAPPER void CPlayerInfo::MakePlayerSafe(bool) { EAXJMP(0x4A1400); }
\ No newline at end of file +WRAPPER void CPlayerInfo::MakePlayerSafe(bool) { EAXJMP(0x4A1400); } +WRAPPER void CPlayerInfo::AwardMoneyForExplosion(CVehicle *vehicle) { EAXJMP(0x4A15F0); } diff --git a/src/core/PlayerInfo.h b/src/core/PlayerInfo.h index e2b42fe7..a9763766 100644 --- a/src/core/PlayerInfo.h +++ b/src/core/PlayerInfo.h @@ -67,6 +67,7 @@ public: RwTexture *m_pSkinTexture; void MakePlayerSafe(bool); + void AwardMoneyForExplosion(CVehicle *vehicle); }; static_assert(sizeof(CPlayerInfo) == 0x13C, "CPlayerInfo: error"); diff --git a/src/core/re3.cpp b/src/core/re3.cpp index f266ffab..8bb9caee 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -158,8 +158,12 @@ void FixCar(void) { CVehicle *veh = FindPlayerVehicle(); - if(veh == nil || !veh->IsCar()) + if(veh == nil) return; + veh->m_fHealth = 1000.0f; + if(!veh->IsCar()) + return; + ((CAutomobile*)veh)->Damage.SetEngineStatus(0); ((CAutomobile*)veh)->Fix(); } |