Fail commands properly when they get aborted
The old code didn't return RET_SYN when aborting at the following prompts: * designate second argument * morale second argument * route second argument * set third argument * tend fourth argument * zdone last argument
This commit is contained in:
parent
a7cf69af50
commit
be41e70fa8
6 changed files with 14 additions and 12 deletions
|
@ -129,7 +129,7 @@ tend(void)
|
|||
if (!snxtitem(&targets, EF_SHIP,
|
||||
getstarg(player->argp[4], "Ships to be tended? ",
|
||||
buf)))
|
||||
break;
|
||||
return RET_SYN;
|
||||
if (!check_ship_ok(&tender))
|
||||
return RET_SYN;
|
||||
total = 0;
|
||||
|
@ -231,7 +231,7 @@ tend_land(struct shpstr *tenderp, char *units)
|
|||
if (!snxtitem(&targets, EF_SHIP,
|
||||
getstarg(player->argp[4], "Ship to be tended? ",
|
||||
buf)))
|
||||
break;
|
||||
return RET_SYN;
|
||||
if (!check_land_ok(&land))
|
||||
return RET_SYN;
|
||||
while (nxtitem(&targets, &target)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue