Fix the previous revision.
This commit is contained in:
parent
6fdac645ba
commit
11e09910aa
1 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue