mirror of
https://github.com/halpz/re3.git
synced 2025-05-13 05:36:39 +03:00
more CVehicle
This commit is contained in:
parent
a65dd41da7
commit
702cd00765
10 changed files with 278 additions and 30 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue