Change xdump realm not to dump unused countries' realms

Affects only deities; mortals can only see their own realms.
This commit is contained in:
Markus Armbruster 2011-06-19 18:52:32 +02:00
parent 93edcf0ac4
commit 815a1b4193

View file

@ -57,7 +57,6 @@ xdvisible(int type, void *p)
switch (type) {
case EF_SECTOR:
case EF_REALM:
return gp->own == player->cnum || player->god;
case EF_SHIP:
case EF_PLANE:
@ -86,6 +85,10 @@ xdvisible(int type, void *p)
case EF_TRADE:
case EF_COMM:
return gp->own != 0;
case EF_REALM:
natp = getnatp(((struct realmstr *)p)->r_cnum);
return (gp->own == player->cnum || player->god)
&& (natp->nat_stat != STAT_UNUSED);
case EF_PRODUCT:
return ((struct pchrstr *)p)->p_sname[0] != 0;
case EF_SHIP_CHR: