diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 7 |
1 files changed, 2 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 c9c284f..2ac0805 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -4241,10 +4241,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4241 | DataserverPlugin.RegisterRequest(m_host.LocalId, | 4241 | DataserverPlugin.RegisterRequest(m_host.LocalId, |
4242 | m_item.ItemID, item.AssetID.ToString()); | 4242 | m_item.ItemID, item.AssetID.ToString()); |
4243 | 4243 | ||
4244 | Vector3 region = new Vector3( | 4244 | Vector3 region = new Vector3(World.RegionInfo.RegionWorldLocX, World.RegionInfo.RegionWorldLocY, 0); |
4245 | World.RegionInfo.LegacyRegionLocX * Constants.RegionSize, | ||
4246 | World.RegionInfo.LegacyRegionLocY * Constants.RegionSize, | ||
4247 | 0); | ||
4248 | 4245 | ||
4249 | World.AssetService.Get(item.AssetID.ToString(), this, | 4246 | World.AssetService.Get(item.AssetID.ToString(), this, |
4250 | delegate(string i, object sender, AssetBase a) | 4247 | delegate(string i, object sender, AssetBase a) |
@@ -5478,7 +5475,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5478 | public LSL_Vector llGetRegionCorner() | 5475 | public LSL_Vector llGetRegionCorner() |
5479 | { | 5476 | { |
5480 | m_host.AddScriptLPS(1); | 5477 | m_host.AddScriptLPS(1); |
5481 | return new LSL_Vector(World.RegionInfo.LegacyRegionLocX * Constants.RegionSize, World.RegionInfo.LegacyRegionLocY * Constants.RegionSize, 0); | 5478 | return new LSL_Vector(World.RegionInfo.RegionWorldLocX, World.RegionInfo.RegionWorldLocY, 0); |
5482 | } | 5479 | } |
5483 | 5480 | ||
5484 | /// <summary> | 5481 | /// <summary> |