summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-11 18:42:54 +0100
committerwithmorten <morten.with@gmail.com>2021-01-11 18:43:04 +0100
commit4a8a1af8858edeef949d8f2ecbd25d3c93ccd042 (patch)
tree75ec362ea1d1d0ca7d3198c025e373a147dc2a81 /src/vehicles/Automobile.cpp
parentfixes (diff)
downloadre3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar.gz
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar.bz2
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar.lz
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar.xz
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.tar.zst
re3-4a8a1af8858edeef949d8f2ecbd25d3c93ccd042.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp2
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){