aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authoronefang2019-05-19 22:54:49 +1000
committeronefang2019-05-19 22:54:49 +1000
commit5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af (patch)
tree4b998a6a42546623c0c4f149a500edeed6172da6 /OpenSim/Region
parentOne last big source of script slowness removed. (diff)
downloadopensim-SC-5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af.zip
opensim-SC-5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af.tar.gz
opensim-SC-5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af.tar.bz2
opensim-SC-5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af.tar.xz
Remove some script distance limits.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index ecaa672..229ad1d 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2506,8 +2506,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2506 pos.x < -10.0 || // return FALSE if more than 10 meters into a west-adjacent region. 2506 pos.x < -10.0 || // return FALSE if more than 10 meters into a west-adjacent region.
2507 pos.x > (World.RegionInfo.RegionSizeX + 10) || // return FALSE if more than 10 meters into a east-adjacent region. 2507 pos.x > (World.RegionInfo.RegionSizeX + 10) || // return FALSE if more than 10 meters into a east-adjacent region.
2508 pos.y < -10.0 || // return FALSE if more than 10 meters into a south-adjacent region. 2508 pos.y < -10.0 || // return FALSE if more than 10 meters into a south-adjacent region.
2509 pos.y > (World.RegionInfo.RegionSizeY + 10) || // return FALSE if more than 10 meters into a north-adjacent region. 2509 pos.y > (World.RegionInfo.RegionSizeY + 10) // return FALSE if more than 10 meters into a north-adjacent region.
2510 pos.z > Constants.RegionHeight // return FALSE if altitude than 4096m
2511 ) 2510 )
2512 ) 2511 )
2513 { 2512 {
@@ -3310,9 +3309,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3310 3309
3311 float dist = (float)llVecDist(llGetPos(), pos); 3310 float dist = (float)llVecDist(llGetPos(), pos);
3312 3311
3313 if (dist > m_ScriptDistanceFactor * 10.0f)
3314 return;
3315
3316 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(inventory); 3312 TaskInventoryItem item = m_host.Inventory.GetInventoryItem(inventory);
3317 3313
3318 if (item == null) 3314 if (item == null)