Allow deity to display power report for all types of countries

Relax country status check of power c for deities.  Can be useful to
display NPCs.
This commit is contained in:
Ron Koenderink 2008-04-18 21:32:46 -06:00 committed by Markus Armbruster
parent 66406bd240
commit aab015c641

View file

@ -96,7 +96,9 @@ powe(void)
if (player->argp[i][0] == 'c') { if (player->argp[i][0] == 'c') {
snxtitem(&ni, EF_NATION, player->argp[i + 1]); snxtitem(&ni, EF_NATION, player->argp[i + 1]);
while (nxtitem(&ni, &nat)) { while (nxtitem(&ni, &nat)) {
if (nat.nat_stat != STAT_ACTIVE) if (nat.nat_stat == STAT_UNUSED)
continue;
if (!player->god && nat.nat_stat != STAT_ACTIVE)
continue; continue;
targets[nat.nat_cnum] = 1; targets[nat.nat_cnum] = 1;
} }