mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 20:09:00 +00:00
hud ammo fix
This commit is contained in:
parent
ab14a0bc61
commit
13b52229be
1 changed files with 4 additions and 4 deletions
|
@ -449,10 +449,10 @@ void CHud::Draw()
|
||||||
}
|
}
|
||||||
if (m_WeaponState != FADED_OUT) {
|
if (m_WeaponState != FADED_OUT) {
|
||||||
CWeapon *weapon = playerPed->GetWeapon();
|
CWeapon *weapon = playerPed->GetWeapon();
|
||||||
uint32 AmmoAmount = CWeaponInfo::GetWeaponInfo((eWeaponType)WeaponType)->m_nAmountofAmmunition;
|
int32 AmmoAmount = CWeaponInfo::GetWeaponInfo((eWeaponType)WeaponType)->m_nAmountofAmmunition;
|
||||||
uint32 AmmoInClip = weapon->m_nAmmoInClip;
|
int32 AmmoInClip = weapon->m_nAmmoInClip;
|
||||||
uint32 TotalAmmo = weapon->m_nAmmoTotal;
|
int32 TotalAmmo = weapon->m_nAmmoTotal;
|
||||||
uint32 Ammo, Clip;
|
int32 Ammo, Clip;
|
||||||
|
|
||||||
if (AmmoAmount <= 1 || AmmoAmount >= 1000)
|
if (AmmoAmount <= 1 || AmmoAmount >= 1000)
|
||||||
sprintf(sTemp, "%d", TotalAmmo);
|
sprintf(sTemp, "%d", TotalAmmo);
|
||||||
|
|
Loading…
Reference in a new issue