Use sctstr member sct_uid instead of recomputing it
The old code recomputed it with sctoff() in some places, without checking for failure. Not a bug, because it can't actually fail, just confusing.
This commit is contained in:
parent
f18502a1d1
commit
a0fa4550a8
8 changed files with 11 additions and 11 deletions
|
@ -300,7 +300,7 @@ fly_map(coord curx, coord cury)
|
|||
i = 0;
|
||||
while (i < 7 && nxtsct(&ns, §)) {
|
||||
/* Nasty: this relies on the iteration order */
|
||||
if (!(view[i] = player->bmap[sctoff(ns.x, ns.y)]))
|
||||
if (!(view[i] = player->bmap[sect.sct_uid]))
|
||||
view[i] = ' ';
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue