(acce, flash, nati, new, rela): Don't bother to complain about bad

country argument, natarg() does that.

(acce, flash, nati, rela): natarg() ensures getnatp() succeeds, no
need to check.
This commit is contained in:
Markus Armbruster 2006-01-06 17:44:31 +00:00
parent e3443c78eb
commit 011f88fec8
5 changed files with 9 additions and 26 deletions

View file

@ -58,16 +58,11 @@ acce(void)
if (player->argp[1] == 0)
as = player->cnum;
else {
if ((n = natarg(player->argp[1], "Which country? ")) < 0) {
pr("Bad country number\n");
if ((n = natarg(player->argp[1], "Which country? ")) < 0)
return RET_SYN;
}
as = (natid)n;
}
if ((natp = getnatp(as)) == 0) {
pr("Bad country number %d\n", player->cnum);
return RET_SYN;
}
natp = getnatp(as);
pr("\t%s Acceptance Status Report\t", cname(as));
prdate();
pr("\n Acceptance status %5s theirs\n",