remove debug
parent
0878b99a2d
commit
d2d9973b0a
|
@ -147,22 +147,19 @@ namespace OpenSim.Modules.PathFinding
|
||||||
{
|
{
|
||||||
Bitmap _map = new Bitmap((int)m_scene.RegionInfo.RegionSizeX, (int)m_scene.RegionInfo.RegionSizeY);
|
Bitmap _map = new Bitmap((int)m_scene.RegionInfo.RegionSizeX, (int)m_scene.RegionInfo.RegionSizeY);
|
||||||
|
|
||||||
for (int Y = 0; Y < m_scene.RegionInfo.RegionSizeY; Y++)
|
for (int X = 0; X < m_scene.RegionInfo.RegionSizeX; X++)
|
||||||
{
|
{
|
||||||
m_log.Info("Y: " + Y);
|
for (int Y = 0; Y < m_scene.RegionInfo.RegionSizeY; Y++)
|
||||||
for (int X = 0; X < m_scene.RegionInfo.RegionSizeX; X++)
|
|
||||||
{
|
{
|
||||||
m_log.Info("X: " + X);
|
_map.SetPixel(Y, X, Color.Green);
|
||||||
|
|
||||||
_map.SetPixel(X, Y, Color.Green);
|
|
||||||
|
|
||||||
float baseheight = (float)m_scene.Heightmap[X, Y];
|
float baseheight = (float)m_scene.Heightmap[X, Y];
|
||||||
|
|
||||||
if (baseheight <= m_scene.RegionInfo.RegionSettings.WaterHeight)
|
if (baseheight <= m_scene.RegionInfo.RegionSettings.WaterHeight)
|
||||||
_map.SetPixel(X, Y, Color.Red);
|
_map.SetPixel(Y, X, Color.Red);
|
||||||
|
|
||||||
if (checkIsPositionBlockedByObjekts(X, Y) == true)
|
if (checkIsPositionBlockedByObjekts(X, Y) == true)
|
||||||
_map.SetPixel(X, Y, Color.Yellow);
|
_map.SetPixel(Y, X, Color.Yellow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue