mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
fix rez distance check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user