fix rez distance check

This commit is contained in:
UbitUmarov
2024-11-30 19:52:29 +00:00
parent 49a4285180
commit e1dd994f2d

View File

@@ -3492,7 +3492,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return LSL_Key.NullKey;
pos += m_host.GetWorldPosition();
}
else if ((pos + m_host.GetWorldPosition()).LengthSquared() > m_Script10mDistanceSquare)
else if ((pos - m_host.GetWorldPosition()).LengthSquared() > m_Script10mDistanceSquare)
return LSL_Key.NullKey;
break;