Skip to content

Commit ccd660d

Browse files
fix: Missing comma when UTP_TRANSPORT_2_0_ABOVE defined (#2769)
* fix Just adding a comma within the UTP_TRANSPORT_2_0_ABOVE conditional at line 1238
1 parent 3506700 commit ccd660d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,10 +1233,11 @@ public override void Initialize(NetworkManager networkManager = null)
12331233
// We also increase the maximum resend timeout since the default one in UTP is very
12341234
// aggressive (optimized for latency and low bandwidth). With NGO, it's too low and
12351235
// we sometimes notice a lot of useless resends, especially if using Relay. (We can
1236-
// only do this with UTP 2.0 because 1.X doesn't support that parameter.)
1236+
// only do this with UTP 2.0 because 1.X doesn't support that parameter.)
12371237
m_NetworkSettings.WithReliableStageParameters(
12381238
windowSize: 64
12391239
#if UTP_TRANSPORT_2_0_ABOVE
1240+
,
12401241
maximumResendTime: m_ProtocolType == ProtocolType.RelayUnityTransport ? 750 : 500
12411242
#endif
12421243
);

0 commit comments

Comments
 (0)