Add shallowcopy for unreliable packets
This commit is contained in:
parent
d503b79858
commit
6bbd3bb121
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user