From d82d5f2049a40a26402caba61b5735ee5088f253 Mon Sep 17 00:00:00 2001 From: nheir Date: Mon, 18 Feb 2019 21:39:38 +0100 Subject: [PATCH] fix scrollbar in serverbrowser's detail scoreboard --- src/game/client/components/menus_browser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index 431293dce..dc0359943 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -2022,7 +2022,7 @@ void CMenus::RenderDetailScoreboard(CUIRect View, const CServerInfo *pInfo, int } else { - float Width = RowWidth * ceil(pInfo->m_NumClients / RowCount); + float Width = RowWidth * ((pInfo->m_NumClients+RowCount-1) / RowCount); static float s_ScrollValue = 0.0f; if(Width > View.w) {