mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +00:00
Merge pull request #8976 from dobrykafe/pr-align-separators
Better alignment of upper and lower separators
This commit is contained in:
commit
60624d5599
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue