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).
This commit is contained in:
Paul Chote
2017-02-04 16:34:18 +00:00
parent b018c3d837
commit 07c9c9ee8c

View File

@@ -104,8 +104,10 @@ namespace OpenRA.Server
case ReceiveState.Data:
{
server.DispatchOrders(this, Frame, bytes);
if (MostRecentFrame < Frame)
MostRecentFrame = Frame;
server.DispatchOrders(this, Frame, bytes);
ExpectLength = 8;
State = ReceiveState.Header;
} break;