Pathwalker

This commit is contained in:
Samed Bektas
2014-05-02 10:51:29 +02:00
parent 9efffcc156
commit 89da875d39

View File

@@ -26,7 +26,7 @@ namespace WorldOfPeacecraft
Coordinate dst = Coords.First.Value;
int distance = Math.Abs (src.X - dst.X) + Math.Abs (src.Y - dst.Y);
if (distance > 1) {
throw new PathwalkerException ("The distance between (" + src.X + "|" + src.Y + ") and (" + dst.X + "|" + dst.Y + ") is grater than 1");
throw new PathwalkerException ("The distance between (" + src.X + "|" + src.Y + ") and (" + dst.X + "|" + dst.Y + ") is greater than 1");
}
string command;
if (src.X > dst.X) {