mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
File score: Implement negative top5 (fixes #1631)
This commit is contained in:
parent
3ac2e0a06a
commit
9dddb290dd
|
@ -247,6 +247,7 @@ void CFileScore::ShowTop5(IConsole::IResult *pResult, int ClientID,
|
|||
{
|
||||
CGameContext *pSelf = (CGameContext *) pUserData;
|
||||
char aBuf[512];
|
||||
Debut = max(1, Debut < 0 ? m_Top.size() + Debut - 3 : Debut);
|
||||
pSelf->SendChatTarget(ClientID, "----------- Top 5 -----------");
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue