From 07c9c9ee8c45196f468e085b1e0a427c806b3ea7 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 4 Feb 2017 16:34:18 +0000 Subject: [PATCH] Only update MostRecentFrame if the frame is the most recent. This fixes it being reset to 0 after an immediate order and not being set before dispatching (which may use it). --- OpenRA.Game/Server/Connection.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Server/Connection.cs b/OpenRA.Game/Server/Connection.cs index 2c78ce9169..e368c73216 100644 --- a/OpenRA.Game/Server/Connection.cs +++ b/OpenRA.Game/Server/Connection.cs @@ -104,8 +104,10 @@ namespace OpenRA.Server case ReceiveState.Data: { + if (MostRecentFrame < Frame) + MostRecentFrame = Frame; + server.DispatchOrders(this, Frame, bytes); - MostRecentFrame = Frame; ExpectLength = 8; State = ReceiveState.Header; } break;