(WUPD_WANT): Unused, remove.
long nat_flags; /* nation flags */
};
- /* Update fields. */
-#define WUPD_WANT bit(0)
-
/* nstat values */
#define VIS bit(0)
#define SANCT (bit(1) | VIS)
struct natstr *natp;
char *p;
- int update;
int checking;
int wantupd;
int totpop;
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);
}
/* Should probably include sanctuaries ..... */
if (natp->nat_stat == STAT_ACTIVE) {
totpop++;
- if ((natp->nat_update & WUPD_WANT) == WUPD_WANT) {
+ if (natp->nat_update) {
totwant++;
if (which == cn)
whichwants++;
struct natstr *natp;
for (cn = 0; NULL != (natp = getnatp(cn)); cn++) {
- if ((natp->nat_stat != STAT_UNUSED) &&
- (natp->nat_update & WUPD_WANT) == 0) {
+ if (natp->nat_stat != STAT_UNUSED && !natp->nat_update)
natp->nat_missed++;
- }
- natp->nat_update &= ~WUPD_WANT;
+ natp->nat_update = 0;
}
return 0;
}