File score: Implement negative top5 (fixes #1631)

This commit is contained in:
def 2019-04-15 18:54:58 +02:00
parent 3ac2e0a06a
commit 9dddb290dd

View file

@ -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++)
{