mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CVehicle::HasADriver()
This commit is contained in:
parent
003f3f22d0
commit
d9f2fc7766
@ -35,3 +35,17 @@ void CVehicle::ResetPointers()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CVehicle::HasADriver()
|
||||
{
|
||||
if(!m_pVehicle) return FALSE;
|
||||
if(!GamePool_Vehicle_GetAt(m_dwGTAId)) return FALSE;
|
||||
|
||||
if(m_pVehicle) {
|
||||
if(m_pVehicle->pDriver && IN_VEHICLE(m_pVehicle->pDriver) && m_pVehicle->pDriver->dwPedType == 0)
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -20,6 +20,8 @@ public:
|
||||
|
||||
void ResetPointers();
|
||||
|
||||
BOOL HasADriver();
|
||||
|
||||
|
||||
void LinkToInterior(int iInterior);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user