From 9d7b476c337e95f6f39dee7ecb5e3a8d942b78b2 Mon Sep 17 00:00:00 2001 From: dobrykafe Date: Tue, 17 Sep 2024 23:26:18 +0200 Subject: [PATCH] better alignment of upper and lower separators --- src/game/server/scoreworker.cpp | 8 ++++---- src/test/score.cpp | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/game/server/scoreworker.cpp b/src/game/server/scoreworker.cpp index 5516ec65c..aa2b14314 100644 --- a/src/game/server/scoreworker.cpp +++ b/src/game/server/scoreworker.cpp @@ -1028,7 +1028,7 @@ 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])); + str_copy(pResult->m_Data.m_aaMessages[Line], "-----------------------------------------", sizeof(pResult->m_Data.m_aaMessages[Line])); return !End; } @@ -1146,7 +1146,7 @@ bool CScoreWorker::ShowTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGame } } - str_copy(paMessages[Line], "-------------------------------", sizeof(paMessages[Line])); + str_copy(paMessages[Line], "---------------------------------", sizeof(paMessages[Line])); return false; } @@ -1230,7 +1230,7 @@ bool CScoreWorker::ShowPlayerTeamTop5(IDbConnection *pSqlServer, const ISqlData break; } } - str_copy(paMessages[Line], "-------------------------------", sizeof(paMessages[Line])); + str_copy(paMessages[Line], "---------------------------------", sizeof(paMessages[Line])); } else { @@ -1352,7 +1352,7 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat { return true; } - str_copy(paMessages[Line], "----------------------------------------------------", sizeof(paMessages[Line])); + str_copy(paMessages[Line], "-------------------------------------------", sizeof(paMessages[Line])); return false; } diff --git a/src/test/score.cpp b/src/test/score.cpp index 2bb920ebc..c9c9e190e 100644 --- a/src/test/score.cpp +++ b/src/test/score.cpp @@ -160,7 +160,7 @@ TEST_P(SingleScore, Top) ExpectLines(m_pPlayerResult, {"------------ Global Top ------------", "1. nameless tee Time: 01:40.00", - "----------------------------------------"}); + "-----------------------------------------"}); } TEST_P(SingleScore, RankRegional) @@ -197,7 +197,7 @@ TEST_P(SingleScore, TopServer) ExpectLines(m_pPlayerResult, {"------------ Global Top ------------", "1. nameless tee Time: 01:40.00", - "----------------------------------------"}); + "-----------------------------------------"}); } TEST_P(SingleScore, RankServerRegional) @@ -264,7 +264,7 @@ TEST_P(SingleScore, TimesExists) str_copy(aBuf, m_pPlayerResult->m_Data.m_aaMessages[1] + str_length(m_pPlayerResult->m_Data.m_aaMessages[1]) - 10, 11); EXPECT_STREQ(aBuf, ", 01:40.00"); - EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[2], "----------------------------------------------------"); + EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[2], "-------------------------------------------"); for(int i = 3; i < CScorePlayerResult::MAX_MESSAGES; i++) { EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[i], ""); @@ -321,7 +321,7 @@ TEST_P(TeamScore, All) ExpectLines(m_pPlayerResult, {"------- Team Top 5 -------", "1. brainless tee & nameless tee Team Time: 01:40.00", - "-------------------------------"}); + "---------------------------------"}); } TEST_P(TeamScore, PlayerExists) @@ -331,7 +331,7 @@ TEST_P(TeamScore, PlayerExists) ExpectLines(m_pPlayerResult, {"------- Team Top 5 -------", "1. brainless tee & nameless tee Team Time: 01:40.00", - "-------------------------------"}); + "---------------------------------"}); } TEST_P(TeamScore, PlayerDoesntExist) @@ -349,7 +349,7 @@ TEST_P(TeamScore, RankUpdates) ExpectLines(m_pPlayerResult, {"------- Team Top 5 -------", "1. brainless tee & nameless tee Team Time: 01:38.00", - "-------------------------------"}); + "---------------------------------"}); } struct MapInfo : public Score