aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorRobert Adams2013-10-02 16:57:02 -0700
committerRobert Adams2013-10-07 13:57:30 -0700
commit25ae59b9ebf71d39d2ff5237b791f2599f4fa082 (patch)
tree2a7a96da851cc236e1c5842301d08ed852c24f65 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentvarregion: add new TerrainData and TerrainCompressor routines. TerrainCompres... (diff)
downloadopensim-SC-25ae59b9ebf71d39d2ff5237b791f2599f4fa082.zip
opensim-SC-25ae59b9ebf71d39d2ff5237b791f2599f4fa082.tar.gz
opensim-SC-25ae59b9ebf71d39d2ff5237b791f2599f4fa082.tar.bz2
opensim-SC-25ae59b9ebf71d39d2ff5237b791f2599f4fa082.tar.xz
varregion: remove scattered use of Constants.RegionSize by having routines reference RegionInfo.RegionWorldLoc?.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
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>