refresh on max ping filter changed

This commit is contained in:
Andrii 2020-09-03 04:08:34 +03:00
parent dac3c782d3
commit 701bbab0bd

View file

@ -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);
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