change XY

master
Christopher Latza 2020-06-11 12:58:20 +02:00
parent 0638784765
commit 2e730ca934
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ 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.X, m_bitmap.Size.Height - (int)start.Y, Color.Green); m_bitmap.SetPixel(m_bitmap.Size.Width - (int)start.Y, m_bitmap.Size.Height - (int)start.X, Color.Green);
m_bitmap.SetPixel(m_bitmap.Size.Width - (int)target.X, m_bitmap.Size.Height - (int)target.Y, Color.Red); m_bitmap.SetPixel(m_bitmap.Size.Width - (int)target.Y, m_bitmap.Size.Height - (int)target.X, Color.Red);
saveDebugImageToDisc(); saveDebugImageToDisc();
} }