From 9a7ce75c0371b4c35523a6c8872bba782a1eeb0b Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 18 Jul 2019 21:41:20 +0200 Subject: CAutomobile damage --- src/vehicles/Vehicle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vehicles/Vehicle.cpp') 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; } } -- cgit v1.2.3