don't go seach for info we already have at hand.. and there is no region height on osGetRegionSize

melanie
UbitUmarov 2016-11-26 03:57:33 +00:00
parent e60366ce92
commit 019910afbd
1 changed files with 4 additions and 2 deletions

View File

@ -3354,8 +3354,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
m_host.AddScriptLPS(1); m_host.AddScriptLPS(1);
Scene scene = m_ScriptEngine.World; Scene scene = m_ScriptEngine.World;
GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID); RegionInfo reg = World.RegionInfo;
return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight); // GridRegion region = scene.GridService.GetRegionByUUID(UUID.Zero, World.RegionInfo.RegionID);
// return new LSL_Vector((float)region.RegionSizeX, (float)region.RegionSizeY, (float)Constants.RegionHeight);
return new LSL_Vector((float)reg.RegionSizeX, (float)reg.RegionSizeY, 0.0f);
} }
public int osGetSimulatorMemory() public int osGetSimulatorMemory()