summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-09 23:49:44 +0200
committeraap <aap@papnet.eu>2019-07-09 23:49:44 +0200
commit702cd0076506dad26abc3c5239a2cfddfa7deb00 (patch)
treea8f19ccb0e3972f516abeebe85addb4f11ddc601 /src/core/re3.cpp
parentyet more CAutomobile (diff)
downloadre3-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 '')
-rw-r--r--src/core/re3.cpp6
1 files changed, 5 insertions, 1 deletions
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();
}