summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/core/PlayerInfo.cpp3
-rw-r--r--src/core/PlayerInfo.h1
-rw-r--r--src/core/re3.cpp6
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();
}