mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Implement/match CVehicle::HasADriver()
This commit is contained in:
1 parent
003f3f22d0
commit
d9f2fc7766
2 files changed
+16
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user