Disable replay saving for campaign missions.

This commit is contained in:
Paul Chote
2014-09-13 18:08:14 +12:00
parent 6e5d1da468
commit b1de14bc70
2 changed files with 7 additions and 4 deletions

View File

@@ -43,10 +43,13 @@ namespace OpenRA
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,
new ReplayRecorderConnection(new NetworkConnection(host, port), ChooseReplayFilename));
IConnection connection = new NetworkConnection(host, port);
if (recordReplay)
connection = new ReplayRecorderConnection(connection, ChooseReplayFilename);
var om = new OrderManager(host, port, password, connection);
JoinInner(om);
return om;
}

View File

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