diff options
author | UbitUmarov | 2016-07-28 08:25:04 +0100 |
---|---|---|
committer | UbitUmarov | 2016-07-28 08:25:04 +0100 |
commit | 3cf8a58f9d288b3e444971489564b744ac1b625c (patch) | |
tree | 7f11a5358d6d32327b0195028d2fa672b3b2218d /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' into httptests (diff) | |
parent | revert adding a new IM parameter ( commit bf604c85c66dd3bed06e3103cdf210ede0... (diff) | |
download | opensim-SC-3cf8a58f9d288b3e444971489564b744ac1b625c.zip opensim-SC-3cf8a58f9d288b3e444971489564b744ac1b625c.tar.gz opensim-SC-3cf8a58f9d288b3e444971489564b744ac1b625c.tar.bz2 opensim-SC-3cf8a58f9d288b3e444971489564b744ac1b625c.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 7a2b24f..319f14c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -3347,24 +3347,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3347 | CheckThreatLevel(ThreatLevel.None, "osGetRegionSize"); | 3347 | CheckThreatLevel(ThreatLevel.None, "osGetRegionSize"); |
3348 | m_host.AddScriptLPS(1); | 3348 | m_host.AddScriptLPS(1); |
3349 | 3349 | ||
3350 | bool isMegaregion; | 3350 | Scene scene = m_ScriptEngine.World; |
3351 | IRegionCombinerModule rcMod = World.RequestModuleInterface<IRegionCombinerModule>(); | 3351 | GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID); |
3352 | if (rcMod != null) | 3352 | return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight); |
3353 | isMegaregion = rcMod.IsRootForMegaregion(World.RegionInfo.RegionID); | ||
3354 | else | ||
3355 | isMegaregion = false; | ||
3356 | |||
3357 | if (isMegaregion) | ||
3358 | { | ||
3359 | Vector2 size = rcMod.GetSizeOfMegaregion(World.RegionInfo.RegionID); | ||
3360 | return new LSL_Vector(size.X, size.Y, Constants.RegionHeight); | ||
3361 | } | ||
3362 | else | ||
3363 | { | ||
3364 | Scene scene = m_ScriptEngine.World; | ||
3365 | GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID); | ||
3366 | return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight); | ||
3367 | } | ||
3368 | } | 3353 | } |
3369 | 3354 | ||
3370 | public int osGetSimulatorMemory() | 3355 | public int osGetSimulatorMemory() |