diff options
author | aap <aap@papnet.eu> | 2019-07-18 21:41:20 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-18 21:41:20 +0200 |
commit | 9a7ce75c0371b4c35523a6c8872bba782a1eeb0b (patch) | |
tree | 66d5ff34dfa270334517385e6858c5d2fc8521e5 /src/vehicles/Vehicle.cpp | |
parent | CAutomobile::ProcessControl done (diff) | |
download | re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.gz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.bz2 re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.lz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.xz re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.tar.zst re3-9a7ce75c0371b4c35523a6c8872bba782a1eeb0b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Vehicle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index b91e4268..4ac3af53 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -61,7 +61,7 @@ CVehicle::CVehicle(uint8 CreatedBy) bComedyControls = false; m_veh_flagB40 = false; m_veh_flagB80 = false; - m_veh_flagC1 = false; + bTakeLessDamage = false; bIsDamaged = false; bFadeOut = false; m_veh_flagC10 = false; @@ -362,8 +362,8 @@ CVehicle::ExtinguishCarFire(void) m_pCarFire->Extinguish(); if(IsCar()){ CAutomobile *car = (CAutomobile*)this; - if(car->Damage.GetEngineStatus() >= 225) - car->Damage.SetEngineStatus(215); + if(car->Damage.GetEngineStatus() >= ENGINE_STATUS_ON_FIRE) + car->Damage.SetEngineStatus(ENGINE_STATUS_ON_FIRE-10); car->m_fFireBlowUpTimer = 0.0f; } } |