Pathwalker
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user