mp/src/game/client/sdk/hud/sdk_hud_weaponselection.cpp
bool CHudWeaponSelection::RealShouldDraw()
{
	C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer();

	if (!pPlayer || !pPlayer->IsAlive())
		return false;

	if (m_flDeployCurr > 0 || m_flDeployGoal > 0)
		return true;

	if ( !pPlayer )
	{
		if ( IsInSelectionMode() )
		{
			HideSelection();
		}
		return false;
	}

	bool bret = CBaseHudWeaponSelection::ShouldDraw();
	if ( !bret )
		return false;

	return ( m_bSelectionVisible ) ? true : false;
}
//-----------------------------------------------------------------------------
// Purpose: returns true if the panel should draw
//-----------------------------------------------------------------------------
returns true if the panel should draw
returns true if the panel should draw
bool CHudWeaponSelection::RealShouldDraw()
{
	C_BasePlayer *pPlayer = C_BasePlayer::GetLocalPlayer();
	if (!pPlayer || !pPlayer->IsAlive())
		return false;
	if (m_flDeployCurr > 0 || m_flDeployGoal > 0)
		return true;
	if ( !pPlayer )
	{
		if ( IsInSelectionMode() )
		{
			HideSelection();
		}
		return false;
	}
	bool bret = CBaseHudWeaponSelection::ShouldDraw();
	if ( !bret )
		return false;
	return ( m_bSelectionVisible ) ? true : false;
}
bool CHudWeaponSelection :: RealShouldDraw ( ) { C_BasePlayer * pPlayer = C_BasePlayer :: GetLocalPlayer ( ) ; if ( ! pPlayer || ! pPlayer -> IsAlive ( ) ) return false ; if ( m_flDeployCurr > 0 || m_flDeployGoal > 0 ) return true ; if ( ! pPlayer ) { if ( IsInSelectionMode ( ) ) { HideSelection ( ) ; } return false ; } bool bret = CBaseHudWeaponSelection :: ShouldDraw ( ) ; if ( ! bret ) return false ; return ( m_bSelectionVisible ) ? true : false ; }
Purpose: returns true if the panel should draw
Purpose : returns true if the panel should draw