aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 36c3780..46836b1 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -1199,6 +1199,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1199 OutPacket(GATRP, ThrottleOutPacketType.Task); 1199 OutPacket(GATRP, ThrottleOutPacketType.Task);
1200 } 1200 }
1201 1201
1202
1203 public virtual bool CanSendLayerData()
1204 {
1205 int n = m_udpClient.GetCatBytesInSendQueue(ThrottleOutPacketType.Land);
1206 if ( n > 100000)
1207 return false;
1208 return true;
1209 }
1210
1202 /// <summary> 1211 /// <summary>
1203 /// Send the region heightmap to the client 1212 /// Send the region heightmap to the client
1204 /// This method is only called when not doing intellegent terrain patch sending and 1213 /// This method is only called when not doing intellegent terrain patch sending and
@@ -9151,7 +9160,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9151 if ((locX >= m_scene.RegionInfo.WorldLocX) 9160 if ((locX >= m_scene.RegionInfo.WorldLocX)
9152 && (locX < (m_scene.RegionInfo.WorldLocX + m_scene.RegionInfo.RegionSizeX)) 9161 && (locX < (m_scene.RegionInfo.WorldLocX + m_scene.RegionInfo.RegionSizeX))
9153 && (locY >= m_scene.RegionInfo.WorldLocY) 9162 && (locY >= m_scene.RegionInfo.WorldLocY)
9154 && (locY < (m_scene.RegionInfo.WorldLocY + m_scene.RegionInfo.RegionSizeY)) ) 9163 && (locY < (m_scene.RegionInfo.WorldLocY + m_scene.RegionInfo.RegionSizeY)))
9155 { 9164 {
9156 tpLocReq.Info.RegionHandle = m_scene.RegionInfo.RegionHandle; 9165 tpLocReq.Info.RegionHandle = m_scene.RegionInfo.RegionHandle;
9157 tpLocReq.Info.Position.X += locX - m_scene.RegionInfo.WorldLocX; 9166 tpLocReq.Info.Position.X += locX - m_scene.RegionInfo.WorldLocX;