Disable replay saving for campaign missions.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user