Revert "Use XYOFFSET() instead of sctoff() in sector iterators"

This reverts commit d2ca7d4ed2.

Turns out the arguments are not always normalized, e.g. after
snxtitem_all().
This commit is contained in:
Markus Armbruster 2008-03-28 07:17:17 +01:00
parent 9a4f49f128
commit 2f5cad1997
2 changed files with 2 additions and 2 deletions

View file

@ -319,7 +319,7 @@ bmnxtsct(struct nstr_sect *np)
if (np->curdist > np->dist)
continue;
}
np->id = XYOFFSET(np->x, np->y);
np->id = sctoff(np->x, np->y);
return 1;
}
/*NOTREACHED*/

View file

@ -67,7 +67,7 @@ nxtsct(struct nstr_sect *np, struct sctstr *sp)
if (np->curdist > np->dist)
continue;
}
np->id = XYOFFSET(np->x, np->y);
np->id = sctoff(np->x, np->y);
if (!np->read(EF_SECTOR, np->id, sp))
continue;
if (np->ncond == 0)