serverbrowser: copy gametype to map name in quicklist
This commit is contained in:
parent
e10f29854e
commit
e4f5549cbd
@ -164,17 +164,17 @@ void CQuickListPanel::SetMapName( const char *pMapName )
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
void CQuickListPanel::SetGameType( const char *pGameType )
|
||||
{
|
||||
if ( strlen ( pGameType ) == 0 )
|
||||
{
|
||||
m_pGameTypeLabel->SetVisible( false );
|
||||
|
||||
if ( strlen ( pGameType ) == 0 || !m_pMapNameLabel )
|
||||
return;
|
||||
}
|
||||
|
||||
char gametype[ 512 ];
|
||||
Q_snprintf( gametype, sizeof( gametype ), "(%s)", pGameType );
|
||||
Q_snprintf( gametype, sizeof( gametype ), "%s (%s)", m_szMapName, pGameType );
|
||||
|
||||
m_pGameTypeLabel->SetText( gametype );
|
||||
m_pMapNameLabel->SetText( gametype );
|
||||
m_pMapNameLabel->SizeToContents();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user