Merge pull request #10304 from whinis/ReplayReworkPR
Reworking ReplayRecorderConnection to be not be a Connection
This commit is contained in:
@@ -52,9 +52,9 @@ namespace OpenRA
|
||||
|
||||
public static OrderManager JoinServer(string host, int port, string password, bool recordReplay = true)
|
||||
{
|
||||
IConnection connection = new NetworkConnection(host, port);
|
||||
var connection = new NetworkConnection(host, port);
|
||||
if (recordReplay)
|
||||
connection = new ReplayRecorderConnection(connection, TimestampedFilename);
|
||||
connection.StartRecording(TimestampedFilename);
|
||||
|
||||
var om = new OrderManager(host, port, password, connection);
|
||||
JoinInner(om);
|
||||
|
||||
Reference in New Issue
Block a user