summaryrefslogtreecommitdiffstats
path: root/src/render/Hud.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-16 16:17:42 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-16 16:17:42 +0100
commitef97134f50639d3e5494a3de243c1d7069e40952 (patch)
tree80211acc1eadaa62e3ae51e51cde5d9e2b049f13 /src/render/Hud.cpp
parentscript6 (diff)
parentMerge branch 'miami' into lcs (diff)
downloadre3-ef97134f50639d3e5494a3de243c1d7069e40952.tar
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.gz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.bz2
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.lz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.xz
re3-ef97134f50639d3e5494a3de243c1d7069e40952.tar.zst
re3-ef97134f50639d3e5494a3de243c1d7069e40952.zip
Diffstat (limited to '')
-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 350e8c45..f3181fa8 100644
--- a/src/render/Hud.cpp
+++ b/src/render/Hud.cpp
@@ -449,10 +449,10 @@ void CHud::Draw()
}
if (m_WeaponState != FADED_OUT) {
CWeapon *weapon = playerPed->GetWeapon();
- uint32 AmmoAmount = CWeaponInfo::GetWeaponInfo((eWeaponType)WeaponType)->m_nAmountofAmmunition;
- uint32 AmmoInClip = weapon->m_nAmmoInClip;
- uint32 TotalAmmo = weapon->m_nAmmoTotal;
- uint32 Ammo, Clip;
+ int32 AmmoAmount = CWeaponInfo::GetWeaponInfo((eWeaponType)WeaponType)->m_nAmountofAmmunition;
+ int32 AmmoInClip = weapon->m_nAmmoInClip;
+ int32 TotalAmmo = weapon->m_nAmmoTotal;
+ int32 Ammo, Clip;
if (AmmoAmount <= 1 || AmmoAmount >= 1000)
sprintf(sTemp, "%d", TotalAmmo);