Merge pull request #6442 from pchote/no-mission-replays

Closes #6210
This commit is contained in:
Matthias Mailänder
2014-09-14 08:54:36 +02:00
2 changed files with 7 additions and 4 deletions

View File

@@ -43,10 +43,13 @@ namespace OpenRA
public static DatabaseReader GeoIpDatabase; public static DatabaseReader GeoIpDatabase;
public static OrderManager JoinServer(string host, int port, string password) public static OrderManager JoinServer(string host, int port, string password, bool recordReplay = true)
{ {
var om = new OrderManager(host, port, password, IConnection connection = new NetworkConnection(host, port);
new ReplayRecorderConnection(new NetworkConnection(host, port), ChooseReplayFilename)); if (recordReplay)
connection = new ReplayRecorderConnection(connection, ChooseReplayFilename);
var om = new OrderManager(host, port, password, connection);
JoinInner(om); JoinInner(om);
return om; return om;
} }

View File

@@ -104,7 +104,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
}; };
Game.LobbyInfoChanged += lobbyReady; Game.LobbyInfoChanged += lobbyReady;
om = Game.JoinServer(IPAddress.Loopback.ToString(), Game.CreateLocalServer(selectedMapPreview.Uid), ""); om = Game.JoinServer(IPAddress.Loopback.ToString(), Game.CreateLocalServer(selectedMapPreview.Uid), "", false);
} }
} }
} }