diff options
author | aap <aap@papnet.eu> | 2021-01-22 10:34:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 10:34:01 +0100 |
commit | d77846bb16911db3d2ebffd6ec6425fcaf3463d1 (patch) | |
tree | e0c2952a6d863b7cde0f46aca121c37ed39f8696 /src/core | |
parent | free cam fixes (diff) | |
parent | m_nWantedLevel -> GetWantedLevel() (diff) | |
download | re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar.gz re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar.bz2 re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar.lz re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar.xz re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.tar.zst re3-d77846bb16911db3d2ebffd6ec6425fcaf3463d1.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Camera.cpp | 4 | ||||
-rw-r--r-- | src/core/Pad.cpp | 2 | ||||
-rw-r--r-- | src/core/Wanted.h | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 9d169716..2ce4e754 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -2783,7 +2783,7 @@ CCamera::TryToStartNewCamMode(int obbeMode) if (CReplay::IsPlayingBack()) return false; #endif - if(FindPlayerPed()->m_pWanted->m_nWantedLevel < 1) + if(FindPlayerPed()->m_pWanted->GetWantedLevel() < 1) return false; if(FindPlayerVehicle() == nil) return false; @@ -2811,7 +2811,7 @@ CCamera::TryToStartNewCamMode(int obbeMode) if (CReplay::IsPlayingBack()) return false; #endif - if(FindPlayerPed()->m_pWanted->m_nWantedLevel < 1) + if(FindPlayerPed()->m_pWanted->GetWantedLevel() < 1) return false; if(FindPlayerVehicle() == nil) return false; diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index 5e5f1326..95a107ee 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -226,7 +226,7 @@ void ArmourCheat() void WantedLevelUpCheat() { CHud::SetHelpMessage(TheText.Get("CHEAT5"), true); - FindPlayerPed()->SetWantedLevel(Min(FindPlayerPed()->m_pWanted->m_nWantedLevel + 2, 6)); + FindPlayerPed()->SetWantedLevel(Min(FindPlayerPed()->m_pWanted->GetWantedLevel() + 2, 6)); } void WantedLevelDownCheat() diff --git a/src/core/Wanted.h b/src/core/Wanted.h index de36c442..9f08e752 100644 --- a/src/core/Wanted.h +++ b/src/core/Wanted.h @@ -37,6 +37,7 @@ public: int32 NumOfHelisRequired(); void SetWantedLevel(int32); void SetWantedLevelNoDrop(int32 level); + int32 GetWantedLevel() { return m_nWantedLevel; } void RegisterCrime(eCrimeType type, const CVector &coors, uint32 id, bool policeDoesntCare); void RegisterCrime_Immediately(eCrimeType type, const CVector &coors, uint32 id, bool policeDoesntCare); void ClearQdCrimes(); |