mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-01 07:02:11 +00:00
Reset the masterserver address if the old one was set by the config
This commit is contained in:
parent
72852ab341
commit
2f63f97692
1 changed files with 11 additions and 0 deletions
11
src/mserv.c
11
src/mserv.c
|
@ -510,6 +510,17 @@ static void MasterServer_OnChange(void)
|
||||||
{
|
{
|
||||||
UnregisterServer();
|
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);
|
Set_api(cv_masterserver.string);
|
||||||
|
|
||||||
if (Online())
|
if (Online())
|
||||||
|
|
Loading…
Reference in a new issue