prevent predefined server infos to be updated
This commit is contained in:
parent
dfa5296de0
commit
1b94baa9e2
1 changed files with 12 additions and 8 deletions
|
@ -286,14 +286,18 @@ void CServerListManager::CentralServerRegisterServer ( const CHostAddress& In
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// update all data and call update registration function
|
// do not update the information in the predefined servers
|
||||||
ServerList[iSelIdx].strName = ServerInfo.strName;
|
if ( iSelIdx > iNumPredefinedServers )
|
||||||
ServerList[iSelIdx].strTopic = ServerInfo.strTopic;
|
{
|
||||||
ServerList[iSelIdx].eCountry = ServerInfo.eCountry;
|
// update all data and call update registration function
|
||||||
ServerList[iSelIdx].strCity = ServerInfo.strCity;
|
ServerList[iSelIdx].strName = ServerInfo.strName;
|
||||||
ServerList[iSelIdx].iMaxNumClients = ServerInfo.iMaxNumClients;
|
ServerList[iSelIdx].strTopic = ServerInfo.strTopic;
|
||||||
ServerList[iSelIdx].bPermanentOnline = ServerInfo.bPermanentOnline;
|
ServerList[iSelIdx].eCountry = ServerInfo.eCountry;
|
||||||
ServerList[iSelIdx].UpdateRegistration();
|
ServerList[iSelIdx].strCity = ServerInfo.strCity;
|
||||||
|
ServerList[iSelIdx].iMaxNumClients = ServerInfo.iMaxNumClients;
|
||||||
|
ServerList[iSelIdx].bPermanentOnline = ServerInfo.bPermanentOnline;
|
||||||
|
ServerList[iSelIdx].UpdateRegistration();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue