Change xdump realm not to dump unused countries' realms
Affects only deities; mortals can only see their own realms.
This commit is contained in:
parent
93edcf0ac4
commit
815a1b4193
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue