Default LocalClientId in ReplayConnection to -1
We do not have a local client in replays. This change prevents anything from accidentally using (sometimes there might be clients with ID 0 present).
This commit is contained in:
@@ -30,7 +30,7 @@ namespace OpenRA.Network
|
||||
int ordersFrame;
|
||||
Dictionary<int, int> lastClientsFrame = new Dictionary<int, int>();
|
||||
|
||||
public int LocalClientId { get { return 0; } }
|
||||
public int LocalClientId { get { return -1; } }
|
||||
public ConnectionState ConnectionState { get { return ConnectionState.Connected; } }
|
||||
public readonly int TickCount;
|
||||
public readonly int FinalGameTick;
|
||||
|
||||
Reference in New Issue
Block a user