diff --git a/saco/game/vehicle.cpp b/saco/game/vehicle.cpp index 6507c88..083464c 100644 --- a/saco/game/vehicle.cpp +++ b/saco/game/vehicle.cpp @@ -79,3 +79,16 @@ void CVehicle::SetLockedState(int iLocked) //----------------------------------------------------------- +void CVehicle::SetEngineState(BOOL bState) +{ + if(!m_pVehicle) return; + + if(!bState) { + m_pVehicle->byteFlags &= 0xDF; + } else { + m_pVehicle->byteFlags |= 0x20; + } +} + +//----------------------------------------------------------- + diff --git a/saco/game/vehicle.h b/saco/game/vehicle.h index 3fb40b5..35f6d92 100644 --- a/saco/game/vehicle.h +++ b/saco/game/vehicle.h @@ -24,6 +24,7 @@ public: BOOL HasADriver(); + void SetEngineState(BOOL bState); void LinkToInterior(int iInterior);