reverse highmap
parent
9e9f3dacba
commit
ed93951ab4
|
@ -40,7 +40,7 @@ namespace OpenSim.Modules.PathFinding
|
|||
{
|
||||
for (int Y = 0; Y < m_scene.RegionInfo.RegionSizeY; Y++)
|
||||
{
|
||||
float baseheight = (float)m_scene.Heightmap[X, Y];
|
||||
float baseheight = (float)m_scene.Heightmap[(int)m_scene.RegionInfo.RegionSizeX - X, (int)m_scene.RegionInfo.RegionSizeY - Y];
|
||||
|
||||
//Block the position then water is on this place.
|
||||
if (baseheight <= m_scene.RegionInfo.RegionSettings.WaterHeight)
|
||||
|
|
Loading…
Reference in New Issue