mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Forbid showing /top5 from rank 0 on
This commit is contained in:
parent
01cad615a3
commit
77b584c12f
|
@ -396,7 +396,7 @@ void CGameContext::ConTeamTop5(IConsole::IResult *pResult, void *pUserData)
|
|||
return;
|
||||
}
|
||||
|
||||
if (pResult->NumArguments() > 0 && pResult->GetInteger(0) >= 0)
|
||||
if (pResult->NumArguments() > 0 && pResult->GetInteger(0) > 0)
|
||||
pSelf->Score()->ShowTeamTop5(pResult, pResult->m_ClientID, pUserData,
|
||||
pResult->GetInteger(0));
|
||||
else
|
||||
|
@ -427,7 +427,7 @@ void CGameContext::ConTop5(IConsole::IResult *pResult, void *pUserData)
|
|||
return;
|
||||
}
|
||||
|
||||
if (pResult->NumArguments() > 0 && pResult->GetInteger(0) >= 0)
|
||||
if (pResult->NumArguments() > 0 && pResult->GetInteger(0) > 0)
|
||||
pSelf->Score()->ShowTop5(pResult, pResult->m_ClientID, pUserData,
|
||||
pResult->GetInteger(0));
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue