oops, forgot this
This commit is contained in:
parent
ce8caef153
commit
fbf82658ce
|
|
@ -97,6 +97,8 @@ namespace NovetusLauncher
|
||||||
VarStorage.GameServer curServer = serverList[selectedServer];
|
VarStorage.GameServer curServer = serverList[selectedServer];
|
||||||
if (ServerListView.Items[selectedServer].Text == curServer.ServerName)
|
if (ServerListView.Items[selectedServer].Text == curServer.ServerName)
|
||||||
{
|
{
|
||||||
|
string oldIP = GlobalVars.IP;
|
||||||
|
int oldPort = GlobalVars.JoinPort;
|
||||||
GlobalVars.IP = curServer.ServerIP;
|
GlobalVars.IP = curServer.ServerIP;
|
||||||
GlobalVars.JoinPort = curServer.ServerPort;
|
GlobalVars.JoinPort = curServer.ServerPort;
|
||||||
#if LAUNCHER
|
#if LAUNCHER
|
||||||
|
|
@ -104,6 +106,8 @@ namespace NovetusLauncher
|
||||||
#else
|
#else
|
||||||
GlobalFuncs.LaunchRBXClient(curServer.ServerClient, ScriptType.Client, false, false, null);
|
GlobalFuncs.LaunchRBXClient(curServer.ServerClient, ScriptType.Client, false, false, null);
|
||||||
#endif
|
#endif
|
||||||
|
GlobalVars.IP = oldIP;
|
||||||
|
GlobalVars.JoinPort = oldPort;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue