1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 23:26:32 +09:00

Fixed SendUnconnectedToSelf

This commit is contained in:
lidgren
2013-03-26 18:13:31 +00:00
parent a8a2c3d3ad
commit 900e280481

View File

@@ -214,11 +214,12 @@ namespace Lidgren.Network
return; // dropping unconnected message since it's not enabled for receiving
NetIncomingMessage om = CreateIncomingMessage(NetIncomingMessageType.UnconnectedData, msg.LengthBytes);
om.Write(msg);
om.m_isFragment = false;
om.m_receiveTime = NetTime.Now;
om.m_senderConnection = null;
om.m_senderEndPoint = m_socket.LocalEndPoint as IPEndPoint;
om.m_bitLength = msg.LengthBits;
NetException.Assert(om.m_bitLength == msg.LengthBits);
ReleaseMessage(om);
}