(xdvisible): Fix case EF_NATION for deities not to return true for
STAT_UNUSED.
This commit is contained in:
parent
4ad5bf51e1
commit
09773ca8cc
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue