Skip to content

Commit 151c8f1

Browse files
committed
small fixes
1 parent 358e353 commit 151c8f1

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ private void HostServerInitialize()
14711471
/// <returns>The TransportId associated with the given ClientId</returns>
14721472
public ulong GetTransportIdFromClientId(ulong clientId)
14731473
{
1474-
var (id, success) = ConnectionManager.TransportIdToClientId(clientId);
1474+
var (id, success) = ConnectionManager.TransportIdToClientId(clientId);
14751475
return success ? id : ulong.MaxValue;
14761476
}
14771477

@@ -1482,7 +1482,7 @@ public ulong GetTransportIdFromClientId(ulong clientId)
14821482
/// <returns>The ClientId from the associated TransportId</returns>
14831483
public ulong GetClientIdFromTransportId(ulong transportId)
14841484
{
1485-
var (id, success) = ConnectionManager.TransportIdToClientId(transportId);
1485+
var (id, success) = ConnectionManager.TransportIdToClientId(transportId);
14861486
return success ? id : ulong.MaxValue;
14871487
}
14881488

com.unity.netcode.gameobjects/Runtime/Messaging/Messages/ConnectionRequestMessage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Unity.Collections;
2-
using UnityEngine;
32

43
namespace Unity.Netcode
54
{

com.unity.netcode.gameobjects/Tests/Runtime/TestHelpers/NetcodeIntegrationTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,10 @@ public IEnumerator SetUp()
651651
}
652652

653653
// Setup the frames per tick for time travel advance to next tick
654-
ConfigureFramesPerTick();
654+
if (m_EnableTimeTravel)
655+
{
656+
ConfigureFramesPerTick();
657+
}
655658
}
656659

657660
if (m_SetupIsACoroutine)

com.unity.netcode.gameobjects/Tests/Runtime/Transports/TransportTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections;
2-
using System.Linq;
32
using NUnit.Framework;
43
using Unity.Netcode.TestHelpers.Runtime;
54
using UnityEngine.TestTools;
@@ -28,7 +27,7 @@ public IEnumerator MultipleDisconnectEventsNoop()
2827
clientTransport.DisconnectLocalClient();
2928
clientTransport.DisconnectLocalClient();
3029

31-
// completely stop and clean up the client
30+
// completely stop and clean up the client
3231
yield return StopOneClient(clientToDisconnect);
3332

3433
var expectedConnectedClients = m_UseHost ? NumberOfClients : NumberOfClients - 1;

0 commit comments

Comments
 (0)