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:
parent
fe372539b2
commit
6c9363cc4f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue