This commit is contained in:
mischa 2024-09-12 13:32:38 +02:00
parent 8aff6ff725
commit ca964154e6

View File

@ -2095,6 +2095,8 @@ static void BroadcastToConnection(NetworkConnectionToClient connection, bool unr
// even if we pass SyncMethod.Reliable, it serializes with initialState=true.
(NetworkWriter baselineSerialization, NetworkWriter deltaSerialization) = SerializeForConnection_UnreliableComponents(identity, connection, unreliableBaselineElapsed);
// send unreliable delta first. ideally we want this to arrive before the new baseline.
// reliable baseline also clears dirty bits, so unreliable must be sent first.
if (deltaSerialization != null)
{
EntityStateMessageUnreliable message = new EntityStateMessageUnreliable