mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix wrongly corrected naming introduced in #5391
This commit is contained in:
parent
b8a82f71aa
commit
b80af9beb3
|
@ -573,7 +573,7 @@ CServerBrowser::CServerEntry *CServerBrowser::Add(const NETADDR &Addr)
|
|||
CNetworkCountry *pCntr = &Network.m_aCountries[i];
|
||||
for(int j = 0; j < pCntr->m_NumServers; j++)
|
||||
{
|
||||
if(net_addr_comp(&Addr, &pCntr->m_vServers[j]) == 0)
|
||||
if(net_addr_comp(&Addr, &pCntr->m_aServers[j]) == 0)
|
||||
{
|
||||
pEntry->m_Info.m_Official = true;
|
||||
break;
|
||||
|
@ -1016,7 +1016,7 @@ void CServerBrowser::UpdateFromHttp()
|
|||
|
||||
if(DDNetFiltered(pExcludeTypes, pCntr->m_aTypes[g]))
|
||||
continue;
|
||||
vWantedAddresses.push_back(CWantedAddr{pCntr->m_vServers[g], false, false});
|
||||
vWantedAddresses.push_back(CWantedAddr{pCntr->m_aServers[g], false, false});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1415,7 +1415,7 @@ void CServerBrowser::LoadDDNetServers()
|
|||
continue;
|
||||
}
|
||||
const char *pStr = json_string_get(pAddr);
|
||||
net_addr_from_str(&pCntr->m_vServers[pCntr->m_NumServers], pStr);
|
||||
net_addr_from_str(&pCntr->m_aServers[pCntr->m_NumServers], pStr);
|
||||
str_copy(pCntr->m_aTypes[pCntr->m_NumServers], pType, sizeof(pCntr->m_aTypes[pCntr->m_NumServers]));
|
||||
}
|
||||
}
|
||||
|
@ -1434,7 +1434,7 @@ void CServerBrowser::RecheckOfficial()
|
|||
CNetworkCountry *pCntr = &Network.m_aCountries[i];
|
||||
for(int j = 0; j < pCntr->m_NumServers; j++)
|
||||
{
|
||||
CServerEntry *pEntry = Find(pCntr->m_vServers[j]);
|
||||
CServerEntry *pEntry = Find(pCntr->m_aServers[j]);
|
||||
if(pEntry)
|
||||
{
|
||||
pEntry->m_Info.m_Official = true;
|
||||
|
@ -1538,7 +1538,7 @@ const char *CServerBrowser::GetTutorialServer()
|
|||
CNetworkCountry *pCntr = &pNetwork->m_aCountries[i];
|
||||
for(int j = 0; j < pCntr->m_NumServers; j++)
|
||||
{
|
||||
CServerEntry *pEntry = Find(pCntr->m_vServers[j]);
|
||||
CServerEntry *pEntry = Find(pCntr->m_aServers[j]);
|
||||
if(!pEntry)
|
||||
continue;
|
||||
if(str_find(pEntry->m_Info.m_aName, "(Tutorial)") == 0)
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
|
||||
char m_aName[256];
|
||||
int m_FlagID;
|
||||
NETADDR m_vServers[MAX_SERVERS];
|
||||
NETADDR m_aServers[MAX_SERVERS];
|
||||
char m_aTypes[MAX_SERVERS][32];
|
||||
int m_NumServers;
|
||||
|
||||
|
|
Loading…
Reference in a new issue