Better naming

This commit is contained in:
MrGadget 2024-01-17 04:50:06 -05:00
parent 60a186c5f2
commit dd4f345cb6

View File

@ -294,9 +294,9 @@ internal static uint GetNextNetworkId()
// Older Unity versions don't have TryPeek.
if (reuseNetworkIds && netIdQueue.Count > 0 && netIdQueue.Peek().timeAvailable < NetworkTime.time)
{
ReusableNetworkId entry = netIdQueue.Dequeue();
//Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {entry.reusableNetId}.");
return entry.reusableNetId;
ReusableNetworkId nextNetId = netIdQueue.Dequeue();
Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {nextNetId.reusableNetId}.");
return nextNetId.reusableNetId;
}
return nextNetworkId++;