Replace one pile of hacks with another

This commit is contained in:
Paul Chote
2010-03-17 23:25:07 +13:00
parent 3aa9b17685
commit e1970ea8f0
7 changed files with 210 additions and 93 deletions

View File

@@ -146,9 +146,13 @@ namespace OpenRA
JoinLocal();
}
public static string CurrentHost = "";
public static int CurrentPort = 0;
internal static void JoinServer(string host, int port)
{
orderManager = new OrderManager(new NetworkConnection( host, port ), "replay.rep");
CurrentHost = host;
CurrentPort = port;
orderManager = new OrderManager(new NetworkConnection( host, port )); // TODO: supplying a replay file prevents osx from joining a game
}
internal static void JoinLocal()