Skip to content

Commit 809956e

Browse files
committed
slight cleanup for usage of "scores" panel
1 parent 29fee1b commit 809956e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/game/client/clientmode_shared.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static void __MsgFunc_VGUIMenu( bf_read &msg )
273273
}
274274

275275
// is the server telling us to show the scoreboard (at the end of a map)?
276-
if ( Q_stricmp( panelname, "scores" ) == 0 )
276+
if ( Q_stricmp( panelname, PANEL_SCOREBOARD ) == 0 )
277277
{
278278
if ( hud_takesshots.GetBool() == true )
279279
{

src/game/client/game_controls/baseviewport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ bool CBaseViewport::IsAnyPanelVisibleExceptScores()
269269
{
270270
IViewPortPanel *p = m_Panels[i];
271271

272-
if ( p->IsVisible() && Q_strcmp("MainMenuOverride", p->GetName()) && Q_strcmp("scores", p->GetName()) )
272+
if ( p->IsVisible() && Q_strcmp( "MainMenuOverride", p->GetName() ) && Q_strcmp( PANEL_SCOREBOARD, p->GetName() ) )
273273
{
274274
return true;
275275
}

0 commit comments

Comments
 (0)