mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix(LatencySimulation): unreliable now sends over the correct channel
This commit is contained in:
parent
52d10e8c5f
commit
4fe0720070
@ -258,7 +258,7 @@ public override void ClientLateUpdate()
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// send and eat
|
// send and eat
|
||||||
wrap.ClientSend(new ArraySegment<byte>(message.bytes), Channels.Reliable);
|
wrap.ClientSend(new ArraySegment<byte>(message.bytes), Channels.Unreliable);
|
||||||
unreliableClientToServer.RemoveAt(i);
|
unreliableClientToServer.RemoveAt(i);
|
||||||
--i;
|
--i;
|
||||||
}
|
}
|
||||||
@ -303,7 +303,7 @@ public override void ServerLateUpdate()
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
// send and eat
|
// send and eat
|
||||||
wrap.ServerSend(message.connectionId, new ArraySegment<byte>(message.bytes), Channels.Reliable);
|
wrap.ServerSend(message.connectionId, new ArraySegment<byte>(message.bytes), Channels.Unreliable);
|
||||||
unreliableServerToClient.RemoveAt(i);
|
unreliableServerToClient.RemoveAt(i);
|
||||||
--i;
|
--i;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user