mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Added back underline for sv_regional_rankings 0
.
This commit is contained in:
parent
e826a72359
commit
817ef6eb58
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue