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:
Markus Armbruster 2008-03-24 10:53:56 +01:00
parent f18502a1d1
commit a0fa4550a8
8 changed files with 11 additions and 11 deletions

View file

@ -327,7 +327,7 @@ nav_map(int x, int y, int show_designations)
* in which case they'll see that.
* --ts
*/
*ptr = player->bmap[sctoff(sect.sct_x, sect.sct_y)];
*ptr = player->bmap[sect.sct_uid];
}
if (changed)
writemap(player->cnum);