From 2f63f97692cb90eef5f594a71d040e371809cdac Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 12 May 2020 19:22:30 -0700 Subject: [PATCH] Reset the masterserver address if the old one was set by the config --- src/mserv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mserv.c b/src/mserv.c index fe11307f..be54d606 100644 --- a/src/mserv.c +++ b/src/mserv.c @@ -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())