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
|
@ -53,7 +53,7 @@ bdes(void)
|
|||
while (!player->aborted && nxtsct(&nstr, §)) {
|
||||
if ((nstr.ncond > 0) && (sect.sct_own != player->cnum))
|
||||
continue;
|
||||
d = player->map[sctoff(nstr.x, nstr.y)];
|
||||
d = player->map[sect.sct_uid];
|
||||
sprintf(prompt, "%s '%c' desig? ",
|
||||
xyas(nstr.x, nstr.y, player->cnum),
|
||||
d ? d : ' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue