Fixed clients getting kicked if they receive an entity event that's more recent than the one they're expecting. This happens often even when there's no actual error, for example if the client happens to receive messages in an incorrect order (the messages are sent using the Unreliable delivery method). Instead of getting themselves kicked, the clients should just ignore the event and wait until they receive the correct one.
This commit is contained in:
-5
@@ -174,11 +174,6 @@ namespace Barotrauma.Networking
|
||||
? Microsoft.Xna.Framework.Color.Red
|
||||
: Microsoft.Xna.Framework.Color.Yellow);
|
||||
}
|
||||
|
||||
if (NetIdUtils.IdMoreRecent(thisEventID, (UInt16)(lastReceivedID + 1)))
|
||||
{
|
||||
GameMain.Client.ReportError(ClientNetError.MISSING_EVENT, expectedID: (UInt16)(lastReceivedID + 1), eventID: thisEventID);
|
||||
}
|
||||
}
|
||||
else if (entity == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user