(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

@ -72,12 +72,10 @@ new(void)
natp = getnatp(player->cnum);
if (natp->nat_xorg != 0 || natp->nat_yorg != 0) {
pr("Must be at 0,0 to add a new country\n");
return 0;
}
if ((n = natarg(player->argp[1], "Country? ")) < 0) {
pr("Bad country number\n");
return 0;
return RET_FAIL;
}
if ((n = natarg(player->argp[1], "Country? ")) < 0)
return RET_SYN;
num = n;
natp = getnatp(num);
if (natp->nat_stat != STAT_NEW) {