(natstr): Simplify encoding of member nat_update. Users changed.

(WUPD_WANT): Unused, remove.
This commit is contained in:
Markus Armbruster 2007-07-10 17:48:57 +00:00
parent bd16520e7c
commit 1fa61af843
4 changed files with 4 additions and 12 deletions

View file

@ -63,7 +63,6 @@ zdon(void)
struct natstr *natp;
char *p;
int update;
int checking;
int wantupd;
int totpop;
@ -112,14 +111,12 @@ zdon(void)
pr("Unable to request an update as the country is in flux\n");
return RET_FAIL;
}
update = natp->nat_update | WUPD_WANT;
natp->nat_missed = 0;
pr("You (%d) now want an update.\n", whichcnum);
} else {
update = natp->nat_update & ~WUPD_WANT;
pr("You (%d) now DON'T want an update.\n", whichcnum);
}
natp->nat_update = update;
natp->nat_update = wantupd;
putnat(natp);
}