summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-22 10:33:55 +0100
committerGitHub <noreply@github.com>2021-01-22 10:33:55 +0100
commit4acc9b08a2179ebf2a12e52759f7b4193c047533 (patch)
tree5adc99bd4296a54cc49354b291876603a72eed6e /src/render
parentfuck (diff)
parentm_nWantedLevel -> GetWantedLevel() (diff)
downloadre3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar.gz
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar.bz2
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar.lz
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar.xz
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.tar.zst
re3-4acc9b08a2179ebf2a12e52759f7b4193c047533.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Hud.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 238dfbb5..b7decdb3 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -619,11 +619,11 @@ void CHud::Draw()
/*
DrawWantedLevel
*/
- if (m_LastWanted == playerPed->m_pWanted->m_nWantedLevel) {
+ if (m_LastWanted == playerPed->m_pWanted->GetWantedLevel()) {
alpha = DrawFadeState(HUD_WANTED_FADING, 0);
} else {
alpha = DrawFadeState(HUD_WANTED_FADING, 1);
- m_LastWanted = playerPed->m_pWanted->m_nWantedLevel;
+ m_LastWanted = playerPed->m_pWanted->GetWantedLevel();
}
if (m_WantedState != FADED_OUT) {
@@ -639,7 +639,7 @@ void CHud::Draw()
for (int i = 0; i < 6; i++) {
if (FrontEndMenuManager.m_PrefsShowHud) {
- if (playerPed->m_pWanted->m_nWantedLevel > i
+ if (playerPed->m_pWanted->GetWantedLevel() > i
&& (CTimer::GetTimeInMilliseconds() > playerPed->m_pWanted->m_nLastWantedLevelChange
+ 2000 || CTimer::GetFrameCounter() & 4)) {
@@ -652,7 +652,7 @@ void CHud::Draw()
CFont::SetColor(WANTED_COLOR_FLASH);
CFont::PrintString(SCREEN_SCALE_FROM_RIGHT(110.0f + 23.0f * i), SCREEN_SCALE_Y(87.0f), sPrintIcon);
- } else if (playerPed->m_pWanted->m_nWantedLevel <= i) {
+ } else if (playerPed->m_pWanted->GetWantedLevel() <= i) {
NOTWANTED_COLOR.a = alpha;
CFont::SetColor(NOTWANTED_COLOR);
CFont::PrintString(SCREEN_SCALE_FROM_RIGHT(110.0f + 23.0f * i), SCREEN_SCALE_Y(87.0f), sPrintIcon);