Skip to content
Snippets Groups Projects
Commit 2f63f976 authored by James R.'s avatar James R.
Browse files

Reset the masterserver address if the old one was set by the config

parent 72852ab3
No related branches found
No related tags found
No related merge requests found
......@@ -510,6 +510,17 @@ static void MasterServer_OnChange(void)
{
UnregisterServer();
/*
TODO: remove this for v2, it's just a hack
for those coming in with an old config.
*/
if (
! cv_masterserver.changed &&
strcmp(cv_masterserver.string, "ms.srb2.org:28900") == 0
){
CV_StealthSet(&cv_masterserver, cv_masterserver.defaultvalue);
}
Set_api(cv_masterserver.string);
if (Online())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment