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

micro optimization in NetServer.SendToAll()

This commit is contained in:
lidgren
2011-12-09 09:11:12 +00:00
parent 123c5d6c00
commit cef6a3adf6

View File

@@ -40,6 +40,12 @@ namespace Lidgren.Network
if (all.Count <= 0)
return;
if (except == null)
{
SendMessage(msg, all, method, sequenceChannel);
return;
}
List<NetConnection> recipients = new List<NetConnection>(all.Count - 1);
foreach (var conn in all)
if (conn != except)