2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-21 17:36:18 +01:00

client: ammo: apply fix for HUD vertical inconsistency (ValveSoftware/halflife#3728)

This commit is contained in:
Alibek Omarov 2023-12-21 04:19:27 +03:00 committed by Andrey Akhmichin
parent cd80a6b4bb
commit 6a9c596dd3

View File

@ -873,6 +873,7 @@ int CHudAmmo::Draw( float flTime )
// Does this weapon have a clip? // Does this weapon have a clip?
y = ScreenHeight - gHUD.m_iFontHeight - gHUD.m_iFontHeight / 2; y = ScreenHeight - gHUD.m_iFontHeight - gHUD.m_iFontHeight / 2;
y += gHUD.m_iHudNumbersYOffset; // a1ba: fix HL25 HUD vertical inconsistensy
// Does weapon have any ammo at all? // Does weapon have any ammo at all?
if( m_pWeapon->iAmmoType > 0 ) if( m_pWeapon->iAmmoType > 0 )