v0.11.0.9
This commit is contained in:
@@ -193,7 +193,7 @@ namespace Barotrauma.Networking
|
||||
continue;
|
||||
}
|
||||
|
||||
byte msgLength = msg.ReadByte();
|
||||
int msgLength = (int)msg.ReadVariableUInt32();
|
||||
|
||||
IServerSerializable entity = Entity.FindEntityByID(entityID) as IServerSerializable;
|
||||
entities.Add(entity);
|
||||
@@ -300,5 +300,15 @@ namespace Barotrauma.Networking
|
||||
|
||||
MidRoundSyncingDone = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears events generated by the current client, used
|
||||
/// when resynchronizing with the server after a timeout.
|
||||
/// </summary>
|
||||
public void ClearSelf()
|
||||
{
|
||||
ID = 0;
|
||||
events.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user