Skip to content

Commit

Permalink
Default LocalClientId in ReplayConnection to -1
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
abcdefg30 authored and reaperrr committed Jan 12, 2020
1 parent 0db4085 commit a28992a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenRA.Game/Network/ReplayConnection.cs
Expand Up @@ -30,7 +30,7 @@ class Chunk
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;
Expand Down

0 comments on commit a28992a

Please sign in to comment.