diff options
author | onefang | 2019-05-19 22:54:49 +1000 |
---|---|---|
committer | onefang | 2019-05-19 22:54:49 +1000 |
commit | 5aba03bbf48ccf01e10d7fd44a5a2fb83558d9af (patch) | |
tree | 4b998a6a42546623c0c4f149a500edeed6172da6 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | One last big source of script slowness removed. (diff) | |
download | opensim-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/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 6 |
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) |