Merge pull request #2040 from nheir/fix/scroll_detail_scoreboard

fix scrollbar in serverbrowser's detail scoreboard
This commit is contained in:
oy 2019-02-21 08:33:01 +01:00 committed by GitHub
commit ea4427d4ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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