Skip to content

Commit

Permalink
Fix replays
Browse files Browse the repository at this point in the history
  • Loading branch information
adammitchelldev committed Jan 17, 2021
1 parent 58fc6ed commit 6d6d2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions OpenRA.Game/Network/OrderManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public int SuggestedTimestep
if (World == null)
return Game.Timestep;

if (!ShouldUseCatchUp)
return World.Timestep;

if (IsStalling || World.IsLoadingGameSave)
return 1;

Expand Down
2 changes: 1 addition & 1 deletion OpenRA.Game/Network/ReplayConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public ReplayConnection(string replayFilename)
}
}

ordersFrame = LobbyInfo.GlobalSettings.OrderLatency; // TODO Fix when adaptive order latency is on
ordersFrame = LobbyInfo.GlobalSettings.UseNewNetcode ? 1 : LobbyInfo.GlobalSettings.OrderLatency;
}

// Do nothing: ignore locally generated orders
Expand Down

0 comments on commit 6d6d2a8

Please sign in to comment.