Update NetworkClient.cs

updated comment
This commit is contained in:
MrGadget 2019-10-18 00:27:34 -04:00 committed by GitHub
parent d8ce80fe0e
commit c3fcf9117c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,8 +273,8 @@ internal static void Update()
while (localClientPacketQueue.Count > 0)
{
byte[] packet = localClientPacketQueue.Dequeue();
// TODO avoid serializing and deserializng the message
// just pass it as is
// Treat host player messages exactly like connected client
// to avoid deceptive / misleading behavior differences
OnDataReceived(new ArraySegment<byte>(packet), Channels.DefaultReliable);
}
}