mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +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.
|
// Older Unity versions don't have TryPeek.
|
||||||
if (reuseNetworkIds && netIdQueue.Count > 0 && netIdQueue.Peek().timeAvailable < NetworkTime.time)
|
if (reuseNetworkIds && netIdQueue.Count > 0 && netIdQueue.Peek().timeAvailable < NetworkTime.time)
|
||||||
{
|
{
|
||||||
ReusableNetworkId entry = netIdQueue.Dequeue();
|
ReusableNetworkId nextNetId = netIdQueue.Dequeue();
|
||||||
//Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {entry.reusableNetId}.");
|
Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, $"[GetNextNetworkId] Reusing NetworkId {nextNetId.reusableNetId}.");
|
||||||
return entry.reusableNetId;
|
return nextNetId.reusableNetId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return nextNetworkId++;
|
return nextNetworkId++;
|
||||||
|
Loading…
Reference in New Issue
Block a user