diff options
author | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-22 00:19:44 +0100 |
commit | 497e0b801ff30cf836887b625752c1643b533a7e (patch) | |
tree | e0c2952a6d863b7cde0f46aca121c37ed39f8696 /src/vehicles | |
parent | free cam fixes (diff) | |
download | re3-497e0b801ff30cf836887b625752c1643b533a7e.tar re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.gz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.bz2 re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.lz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.xz re3-497e0b801ff30cf836887b625752c1643b533a7e.tar.zst re3-497e0b801ff30cf836887b625752c1643b533a7e.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 | ||||
-rw-r--r-- | src/vehicles/Heli.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 77173538..7e8c4702 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -240,7 +240,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){ diff --git a/src/vehicles/Heli.cpp b/src/vehicles/Heli.cpp index 44e9a73f..98e1f5fa 100644 --- a/src/vehicles/Heli.cpp +++ b/src/vehicles/Heli.cpp @@ -474,7 +474,7 @@ CHeli::ProcessControl(void) // Shoot int shootTimeout; if (m_heliType == HELI_TYPE_RANDOM) { - switch (FindPlayerPed()->m_pWanted->m_nWantedLevel) { + switch (FindPlayerPed()->m_pWanted->GetWantedLevel()) { case 0: case 1: case 2: shootTimeout = 999999; break; |