Skip to content

Commit 6dee4b9

Browse files
committed
Fix protagonist system (or reloading the scheme in general) causing armor HUD to always appear
1 parent 36f5965 commit 6dee4b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sp/src/game/client/hl2/hud_battery.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ void CHudBattery::Reset( void )
8383
void CHudBattery::VidInit( void )
8484
{
8585
Reset();
86+
87+
#ifdef MAPBASE
88+
// If the HUD was reloaded, then the battery indicator's alpha will be reset
89+
// Resetting m_iBat allows OnThink() to run and set the correct visibility
90+
m_iBat = INIT_BAT;
91+
#endif
8692
}
8793

8894
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)