Update ServerBrowser.cs
This commit is contained in:
parent
db1b4de623
commit
44a1fda831
|
|
@ -41,7 +41,7 @@ namespace NovetusLauncher
|
||||||
if (ServerListView.Items.Count > 0 && ServerListView.Items[selectedServer] != null && serverList[selectedServer] != null)
|
if (ServerListView.Items.Count > 0 && ServerListView.Items[selectedServer] != null && serverList[selectedServer] != null)
|
||||||
{
|
{
|
||||||
VarStorage.GameServer curServer = serverList[selectedServer];
|
VarStorage.GameServer curServer = serverList[selectedServer];
|
||||||
if (ServerListView.Items[selectedServer].Text == curServer.ServerName)
|
if (curServer.IsValid())
|
||||||
{
|
{
|
||||||
oldIP = GlobalVars.IP;
|
oldIP = GlobalVars.IP;
|
||||||
oldPort = GlobalVars.JoinPort;
|
oldPort = GlobalVars.JoinPort;
|
||||||
|
|
@ -58,6 +58,7 @@ namespace NovetusLauncher
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
GlobalFuncs.LogExceptions(ex);
|
GlobalFuncs.LogExceptions(ex);
|
||||||
|
MessageBox.Show("Cannot join server (" + ex.GetBaseException().Message + ").", "Novetus - Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue