summaryrefslogtreecommitdiffstats
path: root/src/core/PlayerInfo.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-22 14:04:09 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-22 14:04:09 +0100
commitcea6b20c09532c3321c45f18ce36ec34fe836d1f (patch)
treebd6376dac146895eb1f0c1de37f1cf2e2bfdb19f /src/core/PlayerInfo.cpp
parentCMessages::GetTokenPadKeyString (diff)
parentget rid of most --MIAMI comments (diff)
downloadre3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.gz
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.bz2
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.lz
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.xz
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.tar.zst
re3-cea6b20c09532c3321c45f18ce36ec34fe836d1f.zip
Diffstat (limited to 'src/core/PlayerInfo.cpp')
-rw-r--r--src/core/PlayerInfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index 64f3b9d0..337d631c 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -35,8 +35,6 @@
#include "Automobile.h"
#include "GameLogic.h"
-// --MIAMI: File done
-
CVector lastPlayerPos;
void
@@ -483,7 +481,7 @@ CPlayerInfo::Process(void)
CStats::DistanceTravelledOnFoot += FindPlayerPed()->m_fDistanceTravelled;
}
- if (m_pPed->m_pWanted->m_nWantedLevel && !CTheScripts::IsPlayerOnAMission()) {
+ if (m_pPed->m_pWanted->GetWantedLevel() && !CTheScripts::IsPlayerOnAMission()) {
float maxDelta = 0.0f;
static bool movedSignificantly = true;
static bool thereIsACarPathNear = true;
@@ -495,7 +493,7 @@ CPlayerInfo::Process(void)
lastPlayerPos = FindPlayerCoors();
thereIsACarPathNear = ThePaths.FindNodeClosestToCoors(FindPlayerCoors(), PATH_CAR, 60.0f, true, false, false, false) != 0;
}
- switch (m_pPed->m_pWanted->m_nWantedLevel) {
+ switch (m_pPed->m_pWanted->GetWantedLevel()) {
case 1:
maxDelta = 31.f;
break;