fix: port in Direct Connect was dumped to default by force

This commit is contained in:
Igor Popov
2012-09-23 00:59:20 +04:00
committed by Chris Forbes
parent 05e9dcd5ce
commit 79b4765d9f

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
var last = Game.Settings.Player.LastServer.Split(':'); var last = Game.Settings.Player.LastServer.Split(':');
ipField.Text = last.Length > 1 ? last[0] : "localhost"; ipField.Text = last.Length > 1 ? last[0] : "localhost";
portField.Text = last.Length > 2 ? last[1] : "1234"; portField.Text = last.Length == 2 ? last[1] : "1234";
panel.Get<ButtonWidget>("JOIN_BUTTON").OnClick = () => panel.Get<ButtonWidget>("JOIN_BUTTON").OnClick = () =>
{ {