Add Varregion support to osGetRegionSize OSSL function

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
0.8.0.3
Dev Random 2014-03-07 17:13:57 -05:00 committed by Michael Cerquoni
parent 8225e3f40c
commit 9de3fe9410
1 changed files with 3 additions and 1 deletions

View File

@ -2946,7 +2946,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} }
else else
{ {
return new LSL_Vector((float)Constants.RegionSize, (float)Constants.RegionSize, Constants.RegionHeight); Scene scene = m_ScriptEngine.World;
GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID);
return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeX, Constants.RegionHeight);
} }
} }