Add shallowcopy for unreliable packets

This commit is contained in:
Sofia 2020-08-05 22:04:21 +03:00
parent d503b79858
commit 6bbd3bb121

View File

@ -84,6 +84,7 @@ namespace NeonTea.Quakeball.TeaNet.Peers {
return;
}
Connection conn = Connections[uid];
p = p.ShallowCopy();
p.Id = conn.Internal.UnreliablePacketIDCounter++;
p.Reliable = false;
Protocol protocol = Peer.GetProtocol(conn.Internal.AssignedProtocol);