We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36f5965 commit 6dee4b9Copy full SHA for 6dee4b9
1 file changed
sp/src/game/client/hl2/hud_battery.cpp
@@ -83,6 +83,12 @@ void CHudBattery::Reset( void )
83
void CHudBattery::VidInit( void )
84
{
85
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
92
}
93
94
//-----------------------------------------------------------------------------
0 commit comments