diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-16 16:17:42 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-16 16:17:42 +0100 |
commit | ef97134f50639d3e5494a3de243c1d7069e40952 (patch) | |
tree | 80211acc1eadaa62e3ae51e51cde5d9e2b049f13 /src/render/Hud.cpp | |
parent | script6 (diff) | |
parent | Merge branch 'miami' into lcs (diff) | |
download | re3-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.cpp | 8 |
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); |