diff options
author | Dev Random | 2014-03-07 17:13:57 -0500 |
---|---|---|
committer | Michael Cerquoni | 2014-03-07 17:48:07 -0500 |
commit | 9de3fe94105d753db9a12539236b8402f0e97cbd (patch) | |
tree | 44900722542cfd3bb46497c60294e9d8ba7925c3 /OpenSim | |
parent | Remove try/catch in LandManagmentModule.GetLandObject() - this is very old co... (diff) | |
download | opensim-SC-9de3fe94105d753db9a12539236b8402f0e97cbd.zip opensim-SC-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.gz opensim-SC-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.bz2 opensim-SC-9de3fe94105d753db9a12539236b8402f0e97cbd.tar.xz |
Add Varregion support to osGetRegionSize OSSL function
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 4 |
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 | ||