mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 17:44:18 +00:00
SortHash
Loading String
This commit is contained in:
parent
55794249c8
commit
78ee6148f8
|
@ -58,6 +58,7 @@ CServerBrowser::CServerBrowser()
|
||||||
|
|
||||||
m_ServerlistType = 0;
|
m_ServerlistType = 0;
|
||||||
m_BroadcastTime = 0;
|
m_BroadcastTime = 0;
|
||||||
|
m_DDRaceSorthash = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CServerBrowser::SetBaseInfo(class CNetClient *pClient, const char *pNetVersion)
|
void CServerBrowser::SetBaseInfo(class CNetClient *pClient, const char *pNetVersion)
|
||||||
|
@ -699,7 +700,7 @@ void CServerBrowser::Update()
|
||||||
|
|
||||||
// check if we need to resort
|
// check if we need to resort
|
||||||
// TODO: remove the str_comp
|
// TODO: remove the str_comp
|
||||||
if(m_Sorthash != SortHash() || str_comp(m_aFilterString, g_Config.m_BrFilterString) != 0 || str_comp(m_aFilterGametypeString, g_Config.m_BrFilterGametype) != 0)
|
if(m_DDRaceSorthash != DDRaceSortHash() || m_Sorthash != SortHash() || str_comp(m_aFilterString, g_Config.m_BrFilterString) != 0 || str_comp(m_aFilterGametypeString, g_Config.m_BrFilterGametype) != 0)
|
||||||
Sort();
|
Sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -641,7 +641,7 @@ void CMenus::RenderLoading(float Percent)
|
||||||
Graphics()->QuadsEnd();
|
Graphics()->QuadsEnd();
|
||||||
|
|
||||||
|
|
||||||
const char *pCaption = Localize("Loading");
|
const char *pCaption = Localize("Loading DDRace Client");
|
||||||
|
|
||||||
tw = TextRender()->TextWidth(0, 48.0f, pCaption, -1);
|
tw = TextRender()->TextWidth(0, 48.0f, pCaption, -1);
|
||||||
CUIRect r;
|
CUIRect r;
|
||||||
|
|
Loading…
Reference in a new issue