summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-02 22:38:52 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-02 22:38:52 +0200
commit89961325b28ce887501189b5baa9eb50175de5d4 (patch)
tree5febd2aa435023c8a193c15014ffa809f70d045a /src/render
parentAdding sound intensity consts (diff)
downloadre3-89961325b28ce887501189b5baa9eb50175de5d4.tar
re3-89961325b28ce887501189b5baa9eb50175de5d4.tar.gz
re3-89961325b28ce887501189b5baa9eb50175de5d4.tar.bz2
re3-89961325b28ce887501189b5baa9eb50175de5d4.tar.lz
re3-89961325b28ce887501189b5baa9eb50175de5d4.tar.xz
re3-89961325b28ce887501189b5baa9eb50175de5d4.tar.zst
re3-89961325b28ce887501189b5baa9eb50175de5d4.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Hud.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp
index 3707f51f..c3fcb7bf 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -336,7 +336,11 @@ void CHud::Draw()
|| FindPlayerPed()->m_fHealth < 10 && CTimer::GetFrameCounter() & 8) {
AsciiToUnicode("{", sPrintIcon);
+#ifdef FIX_BUGS
+ sprintf(sTemp, "%03d", int32(FindPlayerPed()->m_fHealth + 0.5f));
+#else
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fHealth);
+#endif
AsciiToUnicode(sTemp, sPrint);
CFont::SetColor(CRGBA(0, 0, 0, 255));
@@ -362,7 +366,11 @@ void CHud::Draw()
CFont::SetScale(SCREEN_SCALE_X(0.8f), SCREEN_SCALE_Y(1.35f));
if (FindPlayerPed()->m_fArmour > 1.0f) {
AsciiToUnicode("[", sPrintIcon);
+#ifdef FIX_BUGS
+ sprintf(sTemp, "%03d", int32(FindPlayerPed()->m_fArmour + 0.5f));
+#else
sprintf(sTemp, "%03d", (int32)FindPlayerPed()->m_fArmour);
+#endif
AsciiToUnicode(sTemp, sPrint);
CFont::SetColor(CRGBA(0, 0, 0, 255));