diff options
author | withmorten <morten.with@gmail.com> | 2021-01-11 18:42:54 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-11 18:43:04 +0100 |
commit | 4a8a1af8858edeef949d8f2ecbd25d3c93ccd042 (patch) | |
tree | 75ec362ea1d1d0ca7d3198c025e373a147dc2a81 /src/vehicles/Automobile.cpp | |
parent | 81b5e66dd40fd9e14cb52e71859c9383e89f7d09 (diff) |
fix CPed struct, GetWantedLevel
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 3a0121ec..65e3f313 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -288,7 +288,7 @@ CAutomobile::ProcessControl(void) // Improve grip of vehicles in certain cases bool strongGrip1 = false; bool strongGrip2 = false; - if(FindPlayerVehicle() && this != FindPlayerVehicle() && FindPlayerPed()->m_pWanted->m_nWantedLevel > 3 && + if(FindPlayerVehicle() && this != FindPlayerVehicle() && FindPlayerPed()->m_pWanted->GetWantedLevel() > 3 && (AutoPilot.m_nCarMission == MISSION_RAMPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_RAMPLAYER_CLOSE || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_FARAWAY || AutoPilot.m_nCarMission == MISSION_BLOCKPLAYER_CLOSE) && FindPlayerSpeed().Magnitude() > 0.3f){ |