This commit is contained in:
Paul Chote
2010-07-10 15:05:17 +12:00
parent 0206f70ab8
commit 636bfd5e0a
3 changed files with 8 additions and 7 deletions

View File

@@ -127,9 +127,11 @@ namespace OpenRA.Widgets.Delegates
};
r.GetWidget("JOINSERVER_BUTTON_DIRECTCONNECT").OnMouseUp = mi =>
{ /* rude hack. kill this as soon as we can do a direct connect via the commandline */
{ /* rude hack. Should prompt the user once we have textfield widgets */
r.CloseWindow();
Game.JoinServer(Game.Settings.NetworkHost, Game.Settings.NetworkPort);
if (Game.Settings.NetworkHost != null)
Game.JoinServer(Game.Settings.NetworkHost, Game.Settings.NetworkPort);
return true;
};
}