aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorUbitUmarov2017-07-10 21:12:34 +0100
committerUbitUmarov2017-07-10 21:12:34 +0100
commitf8cdccc16729212e374cc001ab4f0be8e5960259 (patch)
treea090bee683a53648d81847f5279a81d5da1ec99a /OpenSim/Region/ClientStack
parenton entities updates throttles vectors needed to be compared as vectors, not j... (diff)
downloadopensim-SC_OLD-f8cdccc16729212e374cc001ab4f0be8e5960259.zip
opensim-SC_OLD-f8cdccc16729212e374cc001ab4f0be8e5960259.tar.gz
opensim-SC_OLD-f8cdccc16729212e374cc001ab4f0be8e5960259.tar.bz2
opensim-SC_OLD-f8cdccc16729212e374cc001ab4f0be8e5960259.tar.xz
a few more changes on entities updates
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs30
1 files changed, 16 insertions, 14 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 53c185b..954f21f 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -6256,20 +6256,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6256 /// <param name='x'></param> 6256 /// <param name='x'></param>
6257 private bool CheckAgentCameraUpdateSignificance(AgentUpdatePacket.AgentDataBlock x) 6257 private bool CheckAgentCameraUpdateSignificance(AgentUpdatePacket.AgentDataBlock x)
6258 { 6258 {
6259 float vdelta = Vector3.Distance(x.CameraAtAxis, m_thisAgentUpdateArgs.CameraAtAxis); 6259 if(Math.Abs(x.CameraCenter.X - m_thisAgentUpdateArgs.CameraCenter.X) > VDELTA ||
6260 if((vdelta > VDELTA)) 6260 Math.Abs(x.CameraCenter.Y - m_thisAgentUpdateArgs.CameraCenter.Y) > VDELTA ||
6261 return true; 6261 Math.Abs(x.CameraCenter.Z - m_thisAgentUpdateArgs.CameraCenter.Z) > VDELTA ||
6262 6262
6263 vdelta = Vector3.Distance(x.CameraCenter, m_thisAgentUpdateArgs.CameraCenter); 6263 Math.Abs(x.CameraAtAxis.X - m_thisAgentUpdateArgs.CameraAtAxis.X) > VDELTA ||
6264 if((vdelta > VDELTA)) 6264 Math.Abs(x.CameraAtAxis.Y - m_thisAgentUpdateArgs.CameraAtAxis.Y) > VDELTA ||
6265 return true; 6265// Math.Abs(x.CameraAtAxis.Z - m_thisAgentUpdateArgs.CameraAtAxis.Z) > VDELTA ||
6266 6266
6267 vdelta = Vector3.Distance(x.CameraLeftAxis, m_thisAgentUpdateArgs.CameraLeftAxis); 6267 Math.Abs(x.CameraLeftAxis.X - m_thisAgentUpdateArgs.CameraLeftAxis.X) > VDELTA ||
6268 if((vdelta > VDELTA)) 6268 Math.Abs(x.CameraLeftAxis.Y - m_thisAgentUpdateArgs.CameraLeftAxis.Y) > VDELTA ||
6269 return true; 6269// Math.Abs(x.CameraLeftAxis.Z - m_thisAgentUpdateArgs.CameraLeftAxis.Z) > VDELTA ||
6270 6270
6271 vdelta = Vector3.Distance(x.CameraUpAxis, m_thisAgentUpdateArgs.CameraUpAxis); 6271 Math.Abs(x.CameraUpAxis.X - m_thisAgentUpdateArgs.CameraUpAxis.X) > VDELTA ||
6272 if((vdelta > VDELTA)) 6272 Math.Abs(x.CameraUpAxis.Y - m_thisAgentUpdateArgs.CameraUpAxis.Y) > VDELTA
6273// Math.Abs(x.CameraLeftAxis.Z - m_thisAgentUpdateArgs.CameraLeftAxis.Z) > VDELTA ||
6274 )
6273 return true; 6275 return true;
6274 6276
6275 return false; 6277 return false;