aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorDev Random2014-03-07 17:13:57 -0500
committerMichael Cerquoni2014-03-07 17:48:07 -0500
commit9de3fe94105d753db9a12539236b8402f0e97cbd (patch)
tree44900722542cfd3bb46497c60294e9d8ba7925c3 /OpenSim/Region/ScriptEngine
parentRemove try/catch in LandManagmentModule.GetLandObject() - this is very old co... (diff)
downloadopensim-SC_OLD-9de3fe94105d753db9a12539236b8402f0e97cbd.zip
opensim-SC_OLD-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.gz
opensim-SC_OLD-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.bz2
opensim-SC_OLD-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.xz
Add Varregion support to osGetRegionSize OSSL function
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 73174b4..4cd683c 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2946,7 +2946,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2946 } 2946 }
2947 else 2947 else
2948 { 2948 {
2949 return new LSL_Vector((float)Constants.RegionSize, (float)Constants.RegionSize, Constants.RegionHeight); 2949 Scene scene = m_ScriptEngine.World;
2950 GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID);
2951 return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeX, Constants.RegionHeight);
2950 } 2952 }
2951 } 2953 }
2952 2954