mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Match CPlayerPed::GetVehicleSeatID; retail reads dwAction instead of calling GetActionTrigger
This commit is contained in:
@@ -772,7 +772,7 @@ int CPlayerPed::GetVehicleSeatID()
|
||||
{
|
||||
VEHICLE_TYPE *pVehicle;
|
||||
|
||||
if( GetActionTrigger() == ACTION_INCAR && (pVehicle = (VEHICLE_TYPE *)m_pPed->pVehicle) != 0 ) {
|
||||
if( (BYTE)m_pPed->dwAction == ACTION_INCAR && (pVehicle = (VEHICLE_TYPE *)m_pPed->pVehicle) != 0 ) {
|
||||
if(pVehicle->pDriver == m_pPed) return 0;
|
||||
if(pVehicle->pPassengers[0] == m_pPed) return 1;
|
||||
if(pVehicle->pPassengers[1] == m_pPed) return 2;
|
||||
|
||||
Reference in New Issue
Block a user