[saco] Implement/match CVehicle::SetEngineState(...)

This commit is contained in:
RD42
2024-08-20 22:58:42 +08:00
parent 075133ad72
commit f1febb6911
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -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;
}
}
//-----------------------------------------------------------
+1
View File
@@ -24,6 +24,7 @@ public:
BOOL HasADriver();
void SetEngineState(BOOL bState);
void LinkToInterior(int iInterior);