Added back underline for sv_regional_rankings 0.

This commit is contained in:
BurnyLlama 2023-10-30 22:40:04 +01:00
parent e826a72359
commit 817ef6eb58
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)