(EF_COUNTRY, cou_ca): New.

(empfile): Add it.
(xdvisible): Deal with it.
(ef_open_srv, ef_close_srv): Set it up.
(ef_init_view, ef_fina_view): New.
This commit is contained in:
Markus Armbruster 2006-01-14 16:28:33 +00:00
parent 21e3c9d55e
commit 9eba732cc3
6 changed files with 44 additions and 6 deletions

View file

@ -204,8 +204,11 @@ xdvisible(int type, void *p)
case EF_LOST:
return gp->own != 0 && (gp->own == player->cnum || player->god);
case EF_NATION:
return ((struct natstr *)p)->nat_stat != STAT_UNUSED
&& (gp->own == player->cnum || player->god);
if (gp->own == player->cnum || player->god)
return 1;
/* fall through */
case EF_COUNTRY:
return ((struct natstr *)p)->nat_stat != STAT_UNUSED;
case EF_NEWS:
return ((struct nwsstr *)p)->nws_vrb != 0
&& (!opt_HIDDEN || player->god); /* FIXME */