Old code didn't check value of sctoff() for success. But it can't
fail, because we already took care of the condition that can make it
fail. Moreover, the arguments are already normalized. Therefore, we
can just call XYOFFSET().
if (np->curdist > np->dist)
continue;
}
- np->id = sctoff(np->x, np->y);
+ np->id = XYOFFSET(np->x, np->y);
return 1;
}
/*NOTREACHED*/
if (np->curdist > np->dist)
continue;
}
- np->id = sctoff(np->x, np->y);
+ np->id = XYOFFSET(np->x, np->y);
if (!np->read(EF_SECTOR, np->id, sp))
continue;
if (np->ncond == 0)