sp/src/game/client/hl2/hud_battery.cpp
bool CHudBattery::ShouldDraw( void )
{
	bool bNeedsDraw = ( m_iBat != m_iNewBat ) || ( GetAlpha() > 0 );

	return ( bNeedsDraw && CHudElement::ShouldDraw() );
}
//-----------------------------------------------------------------------------
// Purpose: Save CPU cycles by letting the HUD system early cull
// costly traversal.  Called per frame, return true if thinking and 
// painting need to occur.
//-----------------------------------------------------------------------------
Save CPU cycles by letting the HUD system early cull
costly traversal.  Called per frame, return true if thinking and
painting need to occur.
Save CPU cycles by letting the HUD system early cull costly traversal . Called per frame return true if thinking and painting need to occur .
bool CHudBattery::ShouldDraw( void )
{
	bool bNeedsDraw = ( m_iBat != m_iNewBat ) || ( GetAlpha() > 0 );
	return ( bNeedsDraw && CHudElement::ShouldDraw() );
}
bool CHudBattery :: ShouldDraw ( void ) { bool bNeedsDraw = ( m_iBat != m_iNewBat ) || ( GetAlpha ( ) > 0 ) ; return ( bNeedsDraw && CHudElement :: ShouldDraw ( ) ) ; }
Purpose: Save CPU cycles by letting the HUD system early cull
costly traversal.
Purpose : Save CPU cycles by letting the HUD system early cull costly traversal .