limit unscripted and not done by physics sits to 10m distance again

master
UbitUmarov 2020-01-22 18:37:32 +00:00
parent 7adaede14a
commit 59f41598db
1 changed files with 3 additions and 0 deletions

View File

@ -3401,6 +3401,9 @@ namespace OpenSim.Region.Framework.Scenes
if (PhysicsSit(part,offset)) // physics engine
return;
if (Vector3.DistanceSquared(AbsolutePosition, pos) > 100f)
return;
AbsolutePosition = pos + new Vector3(0.0f, 0.0f, m_sitAvatarHeight);
}