diff options
-rw-r--r-- | sky/autoroute.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sky/autoroute.cpp b/sky/autoroute.cpp index f78bc0a449..760e3640d8 100644 --- a/sky/autoroute.cpp +++ b/sky/autoroute.cpp @@ -238,13 +238,13 @@ uint16 SkyAutoRoute::autoRoute(Compact *cpt) { ((uint16*)cpt->extCompact->animScratch)[0] = 0; if ((startX == destX) && (startY == destY)) - return 1; + return 2; if (_routeGrid[(destY + 1) * ROUTE_GRID_WIDTH + destX + 1]) - return 2; // AR destination is an unaccessible block + return 1; // AR destination is an unaccessible block if (!calcWalkGrid(startX, startY, destX, destY)) - return 2; // can't find route to block + return 1; // can't find route to block uint16 *routeData = makeRouteData(startX, startY, destX, destY); // the route is done. |