diff --git a/src/game/server/scoreworker.cpp b/src/game/server/scoreworker.cpp index bd598f102..393f1ca8e 100644 --- a/src/game/server/scoreworker.cpp +++ b/src/game/server/scoreworker.cpp @@ -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); diff --git a/src/test/score.cpp b/src/test/score.cpp index a57b76e64..2e8a0f139 100644 --- a/src/test/score.cpp +++ b/src/test/score.cpp @@ -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)