Fixed server setting character LastNetworkUpdateIDs to UInt32.MaxValue

This commit is contained in:
Regalis
2017-02-01 18:09:31 +02:00
parent 5a4201c3f2
commit b87e22409a
@@ -2154,8 +2154,15 @@ namespace Barotrauma
if (this == c.Character) if (this == c.Character)
{ {
tempBuffer.Write(true); tempBuffer.Write(true);
if (LastNetworkUpdateID < memInput.Count + 1)
{
tempBuffer.Write((UInt32)0);
}
else
{
tempBuffer.Write((UInt32)(LastNetworkUpdateID - memInput.Count - 1)); tempBuffer.Write((UInt32)(LastNetworkUpdateID - memInput.Count - 1));
} }
}
else else
{ {
tempBuffer.Write(false); tempBuffer.Write(false);