Change xdump nat to show only own country, and xdump cou to show to
deities what xdump nat used to show: (cou_ca): Remove initializer. (ef_init_srv): Initialize cou_ca[] from nat_ca[]. (xdvisible): Change case EF_NATION to return true only for owner even for deities.
This commit is contained in:
parent
3f96090ac5
commit
58f67c8e19
3 changed files with 15 additions and 10 deletions
|
@ -77,6 +77,13 @@ ef_init_srv(void)
|
|||
empfile[fileinit[i].ef_type].postread = fileinit[i].postread;
|
||||
empfile[fileinit[i].ef_type].prewrite = fileinit[i].prewrite;
|
||||
}
|
||||
|
||||
for (i = 0; nat_ca[i].ca_name; i++) {
|
||||
cou_ca[i] = nat_ca[i];
|
||||
cou_ca[i].ca_flags |= NSC_CONST | (i < 3 ? 0 : NSC_DEITY);
|
||||
}
|
||||
cou_ca[i] = nat_ca[i];
|
||||
|
||||
ef_open_srv();
|
||||
if (ef_verify() < 0)
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue