mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 09:25:45 +08:00
Reverting back to 2017 since 2018 were causing Linux breakage; reopening Tleiades patch 444 and 445.
This commit is contained in:
@@ -561,7 +561,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
|
||||
/// check for physics-related movement
|
||||
else if (LLVector3.Dist(lastPhysPos,AbsolutePosition) > 0.02)
|
||||
else if (lastPhysPos.GetDistanceTo(AbsolutePosition) > 0.02)
|
||||
{
|
||||
SendTerseUpdateToAllClients();
|
||||
m_updateCount = 0;
|
||||
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
protected void CheckForSignificantMovement()
|
||||
{
|
||||
if (LLVector3.Dist(AbsolutePosition, posLastSignificantMove) > 2.0)
|
||||
if (Helpers.VecDist(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