Merge pull request #7396 from BurnyLlama/add-underline_top_five

Added back underline for `sv_regional_rankings 0`.
This commit is contained in:
Dennis Felsing 2023-10-30 23:10:50 +00:00 committed by GitHub
commit 7000b97425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -970,7 +970,10 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
}
if(!g_Config.m_SvRegionalRankings)
{
str_copy(pResult->m_Data.m_aaMessages[Line], "----------------------------------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
return !End;
}
char aServerLike[16];
str_format(aServerLike, sizeof(aServerLike), "%%%s%%", pData->m_aServer);

View file

@ -159,7 +159,8 @@ TEST_P(SingleScore, Top)
ASSERT_FALSE(CScoreWorker::ShowTop(m_pConn, &m_PlayerRequest, m_aError, sizeof(m_aError))) << m_aError;
ExpectLines(m_pPlayerResult,
{"------------ Global Top ------------",
"1. nameless tee Time: 01:40.00"});
"1. nameless tee Time: 01:40.00",
"----------------------------------------"});
}
TEST_P(SingleScore, RankRegional)
@ -195,7 +196,8 @@ TEST_P(SingleScore, TopServer)
ASSERT_FALSE(CScoreWorker::ShowTop(m_pConn, &m_PlayerRequest, m_aError, sizeof(m_aError))) << m_aError;
ExpectLines(m_pPlayerResult,
{"------------ Global Top ------------",
"1. nameless tee Time: 01:40.00"});
"1. nameless tee Time: 01:40.00",
"----------------------------------------"});
}
TEST_P(SingleScore, RankServerRegional)