This commit is contained in:
mischa 2024-09-12 12:48:55 +02:00
parent f38d7e4164
commit 8aff6ff725

View File

@ -2078,6 +2078,7 @@ static void BroadcastToConnection(NetworkConnectionToClient connection, bool unr
//
// TODO make this less magic in the future. too easy to miss.
unreliableBaselineElapsed);
if (serialization != null)
{
EntityStateMessage message = new EntityStateMessage
@ -2093,6 +2094,7 @@ static void BroadcastToConnection(NetworkConnectionToClient connection, bool unr
// note that syncInterval is always ignored for unreliable in order to have tick aligned [SyncVars].
// even if we pass SyncMethod.Reliable, it serializes with initialState=true.
(NetworkWriter baselineSerialization, NetworkWriter deltaSerialization) = SerializeForConnection_UnreliableComponents(identity, connection, unreliableBaselineElapsed);
if (deltaSerialization != null)
{
EntityStateMessageUnreliable message = new EntityStateMessageUnreliable