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

exception added for out of range sequence channel

This commit is contained in:
lidgren
2011-02-17 10:43:10 +00:00
parent 0238b5c5e7
commit de6d449043
2 changed files with 7 additions and 5 deletions

View File

@@ -29,9 +29,9 @@ namespace Lidgren.Network
/// </summary>
/// <param name="msg">The message to send</param>
/// <param name="method">How to deliver the message</param>
public void SendToAll(NetOutgoingMessage msg, NetConnection except, NetDeliveryMethod method)
/// <param name="except">Don't send to this particular connection</param>
/// <param name="sequenceChannel">Which sequence channel to use for the message</param>
public void SendToAll(NetOutgoingMessage msg, NetConnection except, NetDeliveryMethod method, int sequenceChannel)
{
var all = this.Connections;
if (all.Count <= 0)
@@ -43,7 +43,7 @@ namespace Lidgren.Network
recipients.Add(conn);
if (recipients.Count > 0)
SendMessage(msg, recipients, method, 0);
SendMessage(msg, recipients, method, sequenceChannel);
}
/// <summary>