mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Match CPlayerPed::TogglePlayerControllable; retail writes the IsInVehicle test out inline
This commit is contained in:
@@ -911,7 +911,8 @@ void CPlayerPed::TogglePlayerControllable(int iControllable)
|
||||
} else {
|
||||
ScriptCommand(&toggle_player_controllable,m_bytePlayerNumber,1);
|
||||
ScriptCommand(&lock_actor,m_dwGTAId,0);
|
||||
if(!IsInVehicle()) {
|
||||
// retail writes the IsInVehicle test out inline
|
||||
if(!(m_pPed && IN_VEHICLE(m_pPed))) {
|
||||
GetMatrix(&mat);
|
||||
TeleportTo(mat.pos.X,mat.pos.Y,mat.pos.Z);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user