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
|
@ -66,7 +66,7 @@ rout(void)
|
|||
return RET_SYN;
|
||||
i_del = ip->i_uid;;
|
||||
if (!snxtsct(&ns, player->argp[2]))
|
||||
return RET_FAIL;
|
||||
return RET_SYN;
|
||||
if (!mapbuf)
|
||||
mapbuf = malloc(WORLD_Y * MAPWIDTH(3));
|
||||
if (!map) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue