Fix the previous revision.

This commit is contained in:
Markus Armbruster 2006-04-05 18:15:07 +00:00
parent 6fdac645ba
commit 11e09910aa

View file

@ -151,11 +151,12 @@ bestownedpath(char *bpath, char *bigmap,
((i + 1) << 13) + routelen;
markedsectors++;
}
}
if (tx == ex && ty == ey) {
bpath[routelen] = 'h';
bpath[routelen + 1] = 0;
while (routelen--) {
i = ((mapindex[tx][ty]) >> 13) - 1;
i = (mapindex[tx][ty] >> 13) - 1;
bpath[routelen] = dirchar[i];
tx = tx - dx[i];
ty = ty - dy[i];
@ -168,7 +169,6 @@ bestownedpath(char *bpath, char *bigmap,
}
}
}
}
miny--;
maxy++;
minx -= 2;