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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user