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
parent de43a7bb9e
commit e8db2fa354

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 )