* Bugfixes. Still not appearing correctly however.

zircon^2
Adam Frisby 2007-05-30 04:16:46 +00:00
parent 6f9aba58ee
commit 88003c41a9
1 changed files with 3 additions and 3 deletions

View File

@ -141,15 +141,15 @@ namespace OpenSim
len = simMapProfiles.Count;
int i;
int mtu = 8; // Number of regions to send per packet. Will be more precise in future. ( TODO )
int mtu = 16; // Number of regions to send per packet. Will be more precise in future. ( TODO )
for (i = 0; i < len; i += mtu)
{
MapBlockReplyPacket mbReply = new MapBlockReplyPacket();
mbReply.AgentData.AgentID = this.AgentID;
mbReply.Data = new MapBlockReplyPacket.DataBlock[len];
mbReply.Data = new MapBlockReplyPacket.DataBlock[Math.Min(mtu, len - i)];
int iii;
for (iii = i; iii < (i + mtu); iii++)
for (iii = 0; iii < mtu && i + iii < len; iii++)
{
Hashtable mp = (Hashtable)simMapProfiles[iii];
mbReply.Data[iii] = new MapBlockReplyPacket.DataBlock();