fix scrollbar in serverbrowser's detail scoreboard

This commit is contained in:
nheir 2019-02-18 21:39:38 +01:00
parent dd3c7a9985
commit d82d5f2049

View file

@ -2022,7 +2022,7 @@ void CMenus::RenderDetailScoreboard(CUIRect View, const CServerInfo *pInfo, int
} }
else else
{ {
float Width = RowWidth * ceil(pInfo->m_NumClients / RowCount); float Width = RowWidth * ((pInfo->m_NumClients+RowCount-1) / RowCount);
static float s_ScrollValue = 0.0f; static float s_ScrollValue = 0.0f;
if(Width > View.w) if(Width > View.w)
{ {