From 701bbab0bd9292c3def2acf4725cc251ac9501f6 Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 3 Sep 2020 04:08:34 +0300 Subject: [PATCH] refresh on max ping filter changed --- src/game/client/components/menus_browser.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/client/components/menus_browser.cpp b/src/game/client/components/menus_browser.cpp index d2ebfe220..ddaeb504d 100644 --- a/src/game/client/components/menus_browser.cpp +++ b/src/game/client/components/menus_browser.cpp @@ -618,8 +618,11 @@ void CMenus::RenderServerbrowserFilters(CUIRect View) if(g_Config.m_BrFilterPing != 0) str_format(aBuf, sizeof(aBuf), "%d", g_Config.m_BrFilterPing); static float Offset = 0.0f; - DoEditBox(&g_Config.m_BrFilterPing, &EditBox, aBuf, sizeof(aBuf), FontSize, &Offset); - g_Config.m_BrFilterPing = clamp(str_toint(aBuf), 0, 999); + if (DoEditBox(&g_Config.m_BrFilterPing, &EditBox, aBuf, sizeof(aBuf), FontSize, &Offset)) + { + g_Config.m_BrFilterPing = clamp(str_toint(aBuf), 0, 999); + Client()->ServerBrowserUpdate(); + } } // server address