1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-15 22:56:30 +09:00

Channel iteration order reversed

This commit is contained in:
lidgren
2010-11-10 22:47:48 +00:00
parent 9c8f523d39
commit e8e7268421

View File

@@ -206,8 +206,9 @@ namespace Lidgren.Network
//
// send queued messages
//
foreach (NetSenderChannelBase channel in m_sendChannels)
for (int i = m_sendChannels.Length - 1; i >= 0; i--) // Reverse order so reliable messages are sent first
{
var channel = m_sendChannels[i];
NetException.Assert(m_sendBufferWritePtr < 1 || m_sendBufferNumMessages > 0);
if (channel != null)
channel.SendQueuedMessages(now);