Skip to content

Commit a72e6f9

Browse files
committed
PR comments
1 parent f791225 commit a72e6f9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

com.unity.multiplayer.mlapi/Runtime/Core/NetworkedBehaviour.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ static class TickSystem
2727
{
2828
// todo: this might belong in the tick system, in the end
2929
// special value to indicate "No tick information"
30-
public const ushort k_NoTick = 65535;
30+
public const ushort k_NoTick = ushort.MaxValue;
3131
// Number of ticks over which the tick number wraps back to 0
32-
public const ushort k_TickPeriod = 65000;
32+
public const ushort k_TickPeriod = k_NoTick - 1;
3333

3434
public static ushort GetTick()
3535
{
@@ -970,7 +970,7 @@ internal static void SetNetworkedVarData(List<INetworkedVar> networkedVarList, S
970970

971971
long readStartPos = stream.Position;
972972

973-
networkedVarList[j].ReadField(stream, 0, 0);
973+
networkedVarList[j].ReadField(stream, TickSystem.k_NoTick, TickSystem.k_NoTick);
974974

975975
if (NetworkingManager.Singleton.NetworkConfig.EnsureNetworkedVarLengthSafety)
976976
{

0 commit comments

Comments
 (0)