reverse highmap

master
Christopher Latza 2020-06-11 12:35:37 +02:00
parent 9e9f3dacba
commit ed93951ab4
1 changed files with 1 additions and 1 deletions

View File

@ -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)