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:
parent
9a4f49f128
commit
2f5cad1997
2 changed files with 2 additions and 2 deletions
|
@ -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*/
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue