Reworking ReplayRecorderConnection to no longer be an IConnection but rather attached to IConnection
This commit is contained in:
@@ -49,9 +49,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