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:
Markus Armbruster 2008-07-19 10:00:23 -04:00
parent a7cf69af50
commit be41e70fa8
6 changed files with 14 additions and 12 deletions

View file

@ -87,7 +87,7 @@ zdon(void)
p = getstarg(player->argp[1], "Want update? [Yes|No|Check] ", buf);
}
if (player->aborted)
return RET_FAIL;
return RET_SYN;
checking = 1;
wantupd = 0;