mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* Tleiades grid mode inventory (#444) - thanx Tleiades!
* updated to rev 1413 on libsecondlife.dll and libsecondlife.dll.config (#423)
This commit is contained in:
@@ -162,7 +162,7 @@ namespace OpenSim.Region.Environment.Modules
|
||||
avatar = m_scene.GetScenePresence(presence.ControllingClient.AgentId);
|
||||
if (avatar != null)
|
||||
{
|
||||
dis = (int) avatar.AbsolutePosition.GetDistanceTo(fromPos);
|
||||
dis = (int)LLVector3.Mag(avatar.AbsolutePosition-fromPos);
|
||||
}
|
||||
|
||||
switch (type)
|
||||
@@ -211,4 +211,4 @@ namespace OpenSim.Region.Environment.Modules
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -561,7 +561,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
|
||||
/// check for physics-related movement
|
||||
else if (lastPhysPos.GetDistanceTo(AbsolutePosition) > 0.02)
|
||||
else if (LLVector3.Dist(lastPhysPos,AbsolutePosition) > 0.02)
|
||||
{
|
||||
SendTerseUpdateToAllClients();
|
||||
m_updateCount = 0;
|
||||
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
protected void CheckForSignificantMovement()
|
||||
{
|
||||
if (Helpers.VecDist(AbsolutePosition, posLastSignificantMove) > 2.0)
|
||||
if (LLVector3.Dist(AbsolutePosition, posLastSignificantMove) > 2.0)
|
||||
{
|
||||
posLastSignificantMove = AbsolutePosition;
|
||||
if (OnSignificantClientMovement != null)
|
||||
@@ -919,4 +919,4 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
RemoveFromPhysicalScene();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user