diff options
author | aap <aap@papnet.eu> | 2019-07-02 07:43:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 07:43:00 +0200 |
commit | b2d1433392483c3e1faafcf5127885cb425527e0 (patch) | |
tree | 477b9853bea245d9cbdaa8700e02ff980abe79d5 /src/render | |
parent | Merge pull request #85 from erorcun/erorcun (diff) | |
parent | Kangaroo cheat and bug fixes (diff) | |
download | re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar.gz re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar.bz2 re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar.lz re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar.xz re3-b2d1433392483c3e1faafcf5127885cb425527e0.tar.zst re3-b2d1433392483c3e1faafcf5127885cb425527e0.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Hud.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/Hud.cpp b/src/render/Hud.cpp index 83e62ba0..2547ab2b 100644 --- a/src/render/Hud.cpp +++ b/src/render/Hud.cpp @@ -300,10 +300,10 @@ void CHud::Draw() /* DrawAmmo */ - int16 AmmoAmount = CWeaponInfo::GetWeaponInfo(FindPlayerPed()->GetWeapon()->m_eWeaponType)->m_nAmountofAmmunition; - int32 AmmoInClip = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_weapons[CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_currentWeapon].m_nAmmoInClip; - int32 TotalAmmo = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_weapons[CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_currentWeapon].m_nAmmoTotal; - int32 Ammo, Clip; + uint32 AmmoAmount = CWeaponInfo::GetWeaponInfo(FindPlayerPed()->GetWeapon()->m_eWeaponType)->m_nAmountofAmmunition; + uint32 AmmoInClip = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_weapons[CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_currentWeapon].m_nAmmoInClip; + uint32 TotalAmmo = CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_weapons[CWorld::Players[CWorld::PlayerInFocus].m_pPed->m_currentWeapon].m_nAmmoTotal; + uint32 Ammo, Clip; if (AmmoAmount <= 1 || AmmoAmount >= 1000) sprintf(sTemp, "%d", TotalAmmo); @@ -1359,7 +1359,7 @@ void CHud::SetHelpMessage(wchar *message, bool quick) CMessages::InsertPlayerControlKeysInString(m_HelpMessage); for (int i = 0; i < 256; i++) { - m_LastHelpMessage[i] = message[i]; + m_LastHelpMessage[i] = 0; } m_HelpMessageState = 0; @@ -1443,7 +1443,7 @@ STARTPATCHES InjectHook(0x5048F0, &CHud::Initialise, PATCH_JUMP); InjectHook(0x504CC0, &CHud::ReInitialise, PATCH_JUMP); InjectHook(0x50A250, &CHud::SetBigMessage, PATCH_JUMP); - //InjectHook(0x5051E0, &CHud::SetHelpMessage, PATCH_JUMP); + InjectHook(0x5051E0, &CHud::SetHelpMessage, PATCH_JUMP); InjectHook(0x50A210, &CHud::SetMessage, PATCH_JUMP); InjectHook(0x50A320, &CHud::SetPagerMessage, PATCH_JUMP); InjectHook(0x505290, &CHud::SetVehicleName, PATCH_JUMP); |