mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
refresh on max ping filter changed
This commit is contained in:
parent
dac3c782d3
commit
701bbab0bd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue