Fix pathrange()'s computation of the range's right limit

Because of the bug, the path command's maps weren't always fitted to
the path correctly.  Broken in commit 0f458d2c, v4.3.17
This commit is contained in:
Markus Armbruster 2011-02-18 19:36:55 +01:00
parent fe372539b2
commit 6c9363cc4f

View file

@ -262,7 +262,7 @@ pathrange(coord cx, coord cy, char *pp, int border, struct range *range)
hy += border;
range->lx = xnorm(lx);
range->hx = ynorm(hx - lx < WORLD_X ? hx : lx - 1);
range->hx = xnorm(hx - lx < WORLD_X ? hx : lx - 1);
range->ly = ynorm(ly);
range->hy = ynorm(hy - ly < WORLD_Y ? hy : ly - 1);
xysize_range(range);