From ed93951ab48a3c4e63afe6b0e0fa54d708c00996 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Thu, 11 Jun 2020 12:35:37 +0200 Subject: [PATCH] reverse highmap --- src/PathFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PathFinder.cs b/src/PathFinder.cs index 6c0f54c..7fd59d8 100644 --- a/src/PathFinder.cs +++ b/src/PathFinder.cs @@ -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)