add debug

master
Christopher Latza 2020-06-11 13:02:56 +02:00
parent 2e730ca934
commit 6730366897
1 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,10 @@ namespace OpenSim.Modules.PathFinding
public void setPositions(Vector2 start, Vector2 target) public void setPositions(Vector2 start, Vector2 target)
{ {
m_bitmap.SetPixel(m_bitmap.Size.Width - (int)start.Y, m_bitmap.Size.Height - (int)start.X, Color.Green); Console.WriteLine("StartX = " + ((int)m_bitmap.Size.Width - (int)start.X));
m_bitmap.SetPixel(m_bitmap.Size.Width - (int)target.Y, m_bitmap.Size.Height - (int)target.X, Color.Red); Console.WriteLine("StartY = " + ((int)m_bitmap.Size.Height - (int)start.Y));
m_bitmap.SetPixel(m_bitmap.Size.Width - (int)start.X, m_bitmap.Size.Height - (int)start.Y, Color.Green);
m_bitmap.SetPixel(m_bitmap.Size.Width - (int)target.X, m_bitmap.Size.Height - (int)target.Y, Color.Red);
saveDebugImageToDisc(); saveDebugImageToDisc();
} }