change terrain XY

master
Christopher Latza 2020-06-10 21:52:15 +02:00
parent 301f156830
commit ab24cbc073
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,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[Y, X];
if (baseheight <= m_scene.RegionInfo.RegionSettings.WaterHeight)
_map.SetPixel(X, Y, Color.Blue);