Change nation status from bits to a simple enum:
(nat_status, STAT_UNUSED, STAT_VIS, STAT_ACTIVE): New. (STAT_NEW, STAT_SANCT, STAT_GOD): Change into nat_status members. (STAT_INUSE, STAT_NORM): Remove. (natstr): Use new nat_status for nat_stat. New value Old value STAT_UNUSED 0 STAT_NEW STAT_INUSE | STAT_NEW STAT_VIS STAT_INUSE STAT_SANCT STAT_INUSE | STAT_SANCT STAT_ACTIVE STAT_INUSE | STAT_NORM STAT_GOD STAT_INUSE | STAT_NORM | STAT_GOD Users changed.
This commit is contained in:
parent
41c2c27376
commit
8b16c31223
35 changed files with 113 additions and 151 deletions
|
@ -87,12 +87,12 @@ play_list(struct player *joe)
|
|||
/* It's a blitz, we see everything */
|
||||
} else if (joe->god) {
|
||||
/* This country is a god, so we see it */
|
||||
} else if (us->nat_stat == VIS) {
|
||||
} else if (us->nat_stat == STAT_VIS) {
|
||||
/* We are a visitor country, we can't see squat, except deities */
|
||||
return 0;
|
||||
} else if (joe->cnum != player->cnum) {
|
||||
/* This isn't us. Can we see it? */
|
||||
if (natp->nat_stat == VIS) {
|
||||
if (natp->nat_stat == STAT_VIS) {
|
||||
/* Yes, we can see visitors are logged on */
|
||||
} else if (getrel(natp, player->cnum) < ALLIED) {
|
||||
/* This is a non-allied country, don't show it. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue