From 9efab476feb559fdb2ae3eeb04e18cc540404df3 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 20 Jun 2016 00:48:39 +0300 Subject: [PATCH] Fix #185 --- cl_dll/hud/battery.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cl_dll/hud/battery.cpp b/cl_dll/hud/battery.cpp index 34f7861..0adb4a1 100644 --- a/cl_dll/hud/battery.cpp +++ b/cl_dll/hud/battery.cpp @@ -30,10 +30,10 @@ int CHudBattery::Init( void ) m_iBat = 0; m_fFade = 0; m_iFlags = 0; + m_enArmorType = Vest; HOOK_MESSAGE( Battery ); - HOOK_MESSAGE( ArmorType ) - + HOOK_MESSAGE( ArmorType ); gHUD.AddHudElem( this ); return 1; @@ -47,7 +47,6 @@ int CHudBattery::VidInit( void ) m_hFull[VestHelm].SetSpriteByName("suithelmet_full"); m_iHeight = m_hFull[Vest].rect.bottom - m_hEmpty[Vest].rect.top; - m_enArmorType = Vest; m_fFade = 0; return 1;