diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-15 16:57:35 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-15 16:57:35 +0100 |
commit | 4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f (patch) | |
tree | ecd6628c082ffdd0e12e1ac7616e69f9be0f55ac /src/render | |
parent | incoming "fuck" commit (diff) | |
parent | Fix Jumbo Sound reseting when walking (diff) | |
download | re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar.gz re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar.bz2 re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar.lz re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar.xz re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.tar.zst re3-4bd7bafd7cef0c2f1238dcbbbf4282e6bc5a684f.zip |
Diffstat (limited to 'src/render')
-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); |