mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
Revert "[saco] Match CPlayerPed::GetVehicleSeatID; retail reads dwAction instead of calling GetActionTrigger"
This reverts commit 1387bbcf00.
This commit is contained in:
1 parent
a4fd8926df
commit
280d650e9d
1 file changed
+1
-1
@@ -795,7 +795,7 @@ int CPlayerPed::GetVehicleSeatID()
|
||||
{
|
||||
VEHICLE_TYPE *pVehicle;
|
||||
|
||||
if( (BYTE)m_pPed->dwAction == ACTION_INCAR && (pVehicle = (VEHICLE_TYPE *)m_pPed->pVehicle) != 0 ) {
|
||||
if( GetActionTrigger() == 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