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

View File

@@ -2154,7 +2154,14 @@ namespace Barotrauma
if (this == c.Character)
{
tempBuffer.Write(true);
tempBuffer.Write((UInt32)(LastNetworkUpdateID - memInput.Count - 1));
if (LastNetworkUpdateID < memInput.Count + 1)
{
tempBuffer.Write((UInt32)0);
}
else
{
tempBuffer.Write((UInt32)(LastNetworkUpdateID - memInput.Count - 1));
}
}
else
{