prevent predefined server infos to be updated

This commit is contained in:
Volker Fischer 2011-05-04 18:25:10 +00:00
parent dfa5296de0
commit 1b94baa9e2

View file

@ -285,6 +285,9 @@ void CServerListManager::CentralServerRegisterServer ( const CHostAddress& In
ServerList.append ( CServerListEntry ( InetAddr, ServerInfo ) ); ServerList.append ( CServerListEntry ( InetAddr, ServerInfo ) );
} }
else else
{
// do not update the information in the predefined servers
if ( iSelIdx > iNumPredefinedServers )
{ {
// update all data and call update registration function // update all data and call update registration function
ServerList[iSelIdx].strName = ServerInfo.strName; ServerList[iSelIdx].strName = ServerInfo.strName;
@ -298,6 +301,7 @@ void CServerListManager::CentralServerRegisterServer ( const CHostAddress& In
} }
} }
} }
}
void CServerListManager::CentralServerUnregisterServer ( const CHostAddress& InetAddr ) void CServerListManager::CentralServerUnregisterServer ( const CHostAddress& InetAddr )
{ {