mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-17 18:40:33 +00:00
Better naming
This commit is contained in:
parent
60a186c5f2
commit
dd4f345cb6
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user