mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match CVehicle::SetEngineState(...)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
|
||||
BOOL HasADriver();
|
||||
|
||||
void SetEngineState(BOOL bState);
|
||||
|
||||
void LinkToInterior(int iInterior);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user