snxtsct_area() computed width and height, overwriting the values
passed in, even though all but two callers passed correct values. The
exceptions were snxtsct() in case NS_ALL, and snxtsct_all(). Change
them to pass correct values, and drop the recomputation from
snxtsct_area(). Simplifies the interface between snxtsct_area() and
its callers.
range.ly = yabs(natp, -WORLD_Y / 2);
range.hx = xabs(natp, WORLD_X / 2);
range.hy = yabs(natp, WORLD_Y / 2);
- range.width = range.height = 0;
+ xysize_range(&range);
snxtsct_area(np, &range);
break;
default:
worldrange.ly = -WORLD_Y / 2;
worldrange.hx = WORLD_X / 2;
worldrange.hy = WORLD_Y / 2;
- worldrange.width = worldrange.height = 0;
+ xysize_range(&worldrange);
snxtsct_area(np, &worldrange);
}
np->y = np->range.ly;
np->dx = -1;
np->dy = 0;
- xysize_range(&np->range);
}
void