1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

Bug in reliability fixed

This commit is contained in:
lidgren
2010-05-24 05:25:50 +00:00
parent 7ca55a81e7
commit 2b5967794e
3 changed files with 10 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ namespace Lidgren.Network
throw new NetException("Trying to encode NetMessageType " + m_type + " to unconnected endpoint!");
ushort seqNr;
if (m_type >= NetMessageType.UserReliableUnordered)
if (m_type < NetMessageType.UserReliableUnordered)
seqNr = conn.GetSendSequenceNumber(m_type); // "disposable" sequence number
else
seqNr = conn.StoreReliableMessage(now, this);