Fixed server setting character LastNetworkUpdateIDs to UInt32.MaxValue
This commit is contained in:
@@ -2154,7 +2154,14 @@ namespace Barotrauma
|
|||||||
if (this == c.Character)
|
if (this == c.Character)
|
||||||
{
|
{
|
||||||
tempBuffer.Write(true);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user