diff options
author | Robert Göffringmann | 2003-08-02 19:37:00 +0000 |
---|---|---|
committer | Robert Göffringmann | 2003-08-02 19:37:00 +0000 |
commit | 83450bef27037c2b1dacbdca1b798304b37226fa (patch) | |
tree | a88bbe92319c1b805ea84bb519406afdf9722303 /sky | |
parent | ada236a63b0b6dc5f2490526ff70b4278ba82f6b (diff) | |
download | scummvm-rg350-83450bef27037c2b1dacbdca1b798304b37226fa.tar.gz scummvm-rg350-83450bef27037c2b1dacbdca1b798304b37226fa.tar.bz2 scummvm-rg350-83450bef27037c2b1dacbdca1b798304b37226fa.zip |
fix autoroute return codes.
svn-id: r9426
Diffstat (limited to 'sky')
-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. |