Swap zdone's deity arguments

This puts the additional deity argument last.

Deity syntax wasn't documented before.
This commit is contained in:
Markus Armbruster 2008-07-20 09:02:33 -04:00
parent 8fa45735db
commit c7426e1b45
2 changed files with 12 additions and 12 deletions

View file

@ -31,5 +31,8 @@ command.
Your zdone state is cleared when an update occurs. Your zdone state is cleared when an update occurs.
.s1 .s1
The \*Qshow updates\*U command shows update policy and schedule. The \*Qshow updates\*U command shows update policy and schedule.
.sp .s1
For deities, the command takes an additional parameter: the country to
impersonate.
.s1
.SA "show, Updates" .SA "show, Updates"

View file

@ -75,19 +75,9 @@ zdon(void)
pr("Demand updates are not enabled.\n"); pr("Demand updates are not enabled.\n");
return RET_FAIL; return RET_FAIL;
} }
if (player->god) {
/* Deity syntax "country what" */
whichcnum = natarg(player->argp[1], "Which country no.? ");
if (whichcnum < 0)
return RET_SYN;
p = getstarg(player->argp[2], "Want update? [Yes|No|Check] ", buf);
} else {
whichcnum = player->cnum;
p = getstarg(player->argp[1], "Want update? [Yes|No|Check] ", buf); p = getstarg(player->argp[1], "Want update? [Yes|No|Check] ", buf);
}
if (!p) if (!p)
return RET_SYN; return RET_SYN;
if (*p == 'y' || *p == 'Y') { if (*p == 'y' || *p == 'Y') {
checking = 0; checking = 0;
wantupd = 1; wantupd = 1;
@ -99,6 +89,13 @@ zdon(void)
wantupd = 0; wantupd = 0;
} }
if (player->god) {
whichcnum = natarg(player->argp[2], "for which country? ");
if (whichcnum < 0)
return RET_SYN;
} else
whichcnum = player->cnum;
if (!(natp = getnatp(whichcnum))) { if (!(natp = getnatp(whichcnum))) {
pr("Unable to find country. %d\n", whichcnum); pr("Unable to find country. %d\n", whichcnum);
pr("Notify the Deity.\n"); pr("Notify the Deity.\n");