Change xdump nat to show only own country, and xdump cou to show to

deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.
This commit is contained in:
Markus Armbruster 2006-02-17 18:38:50 +00:00
parent 3f96090ac5
commit 58f67c8e19
3 changed files with 15 additions and 10 deletions

View file

@ -207,9 +207,7 @@ xdvisible(int type, void *p)
case EF_LOST:
return gp->own != 0 && (gp->own == player->cnum || player->god);
case EF_NATION:
if (!player->god)
return gp->own == player->cnum;
/* fall through */
return gp->own == player->cnum;
case EF_COUNTRY:
return ((struct natstr *)p)->nat_stat != STAT_UNUSED;
case EF_NEWS: