From 68851630caecac3a886f9ec7bb5a43b6b05736d4 Mon Sep 17 00:00:00 2001 From: oy Date: Thu, 30 Sep 2010 00:32:45 +0200 Subject: fixed server browser list. Closes #74 --- src/game/client/components/menus_browser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index bd643a3c..8c45ee87 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -135,14 +135,14 @@ void CMenus::RenderServerbrowserServerList(CUIRect View) UI()->DoLabel(&MsgBox, Localize("No servers match your filter criteria"), 16.0f, 0); } - int Num = (int)(View.h/s_aCols[0].m_Rect.h); + int Num = (int)(View.h/s_aCols[0].m_Rect.h) + 1; static int s_ScrollBar = 0; static float s_ScrollValue = 0; Scroll.HMargin(5.0f, &Scroll); s_ScrollValue = DoScrollbarV(&s_ScrollBar, &Scroll, s_ScrollValue); - int ScrollNum = NumServers-Num+10; + int ScrollNum = NumServers-Num+1; if(ScrollNum > 0) { if(Input()->KeyPresses(KEY_MOUSE_WHEEL_UP)) -- cgit 1.4.1