(xdvisible): Fix case EF_NATION for deities not to return true for

STAT_UNUSED.
This commit is contained in:
Markus Armbruster 2006-02-16 21:49:27 +00:00
parent 4ad5bf51e1
commit 09773ca8cc

View file

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