Overhaul player disconnect notifications.

This commit is contained in:
Paul Chote
2021-09-04 15:09:30 +01:00
committed by abcdefg30
parent b8e343bee9
commit 54c08748e0
12 changed files with 99 additions and 60 deletions

View File

@@ -28,10 +28,10 @@ namespace OpenRA.Server
public readonly EndPoint EndPoint;
public long TimeSinceLastResponse => Game.RunTime - lastReceivedTime;
public int MostRecentFrame { get; private set; }
public bool TimeoutMessageShown;
public bool Validated;
public int LastOrdersFrame;
long lastReceivedTime = 0;
@@ -107,9 +107,6 @@ namespace OpenRA.Server
case ReceiveState.Data:
{
if (MostRecentFrame < frame)
MostRecentFrame = frame;
onPacket(this, frame, bytes);
expectLength = 8;
state = ReceiveState.Header;