Game loads to main menu; "Connect to server" connects to localhost:1234. "Quit" quits.

This commit is contained in:
Paul Chote
2010-03-09 19:04:05 +13:00
parent 56b1b45965
commit cddefb3919
4 changed files with 42 additions and 7 deletions

View File

@@ -125,19 +125,21 @@ namespace OpenRA
PerfHistory.items["batches"].hasNormalTick = false;
PerfHistory.items["text"].hasNormalTick = false;
Game.controller = controller;
ChangeMap(mapName);
if (Settings.Replay != "")
throw new NotImplementedException();
else
{
var connection = (string.IsNullOrEmpty(Settings.NetworkHost))
? new EchoConnection()
: new NetworkConnection( Settings.NetworkHost, Settings.NetworkPort );
orderManager = new OrderManager(connection, "replay.rep");
orderManager = new OrderManager(new EchoConnection());
}
}
internal static void JoinServer(string host, int port)
{
orderManager = new OrderManager(new NetworkConnection( host, port ), "replay.rep");
}
static int lastTime = Environment.TickCount;