aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2016-11-26 03:57:33 +0000
committerUbitUmarov2016-11-26 03:57:33 +0000
commit019910afbdd76a907a7fe3a5c7b9044fae17f4d2 (patch)
tree5a3cf4718d435f79a7dfcf34a87774f2b71514f7 /OpenSim/Region
parent avoid doing unnecessary heavy things on change physics rep (diff)
downloadopensim-SC-019910afbdd76a907a7fe3a5c7b9044fae17f4d2.zip
opensim-SC-019910afbdd76a907a7fe3a5c7b9044fae17f4d2.tar.gz
opensim-SC-019910afbdd76a907a7fe3a5c7b9044fae17f4d2.tar.bz2
opensim-SC-019910afbdd76a907a7fe3a5c7b9044fae17f4d2.tar.xz
don't go seach for info we already have at hand.. and there is no region height on osGetRegionSize
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 1a594e1..a21a0ca 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -3354,8 +3354,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3354 m_host.AddScriptLPS(1); 3354 m_host.AddScriptLPS(1);
3355 3355
3356 Scene scene = m_ScriptEngine.World; 3356 Scene scene = m_ScriptEngine.World;
3357 GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID); 3357 RegionInfo reg = World.RegionInfo;
3358 return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight); 3358// GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID);
3359// return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight);
3360 return new LSL_Vector((float)reg.RegionSizeX, (float)reg.RegionSizeY, 0.0f);
3359 } 3361 }
3360 3362
3361 public int osGetSimulatorMemory() 3363 public int osGetSimulatorMemory()