Forbid showing /top5 from rank 0 on

This commit is contained in:
Henningstone 2016-05-05 01:33:28 +02:00
parent 01cad615a3
commit 77b584c12f

View file

@ -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