Add "user canceled" as extended command return value
Instead of returning ECMD_OK, the commands now return ECMD_CANCEL when user declined to pick a direction or an object to act on. Note that this can be ORed with ECMD_TIME, if the command still took a turn. For now this has no gameplay meaning.
This commit is contained in:
@@ -125,7 +125,7 @@ dowrite(struct obj *pen)
|
||||
/* get paper to write on */
|
||||
paper = getobj("write on", write_ok, GETOBJ_NOFLAGS);
|
||||
if (!paper)
|
||||
return ECMD_OK;
|
||||
return ECMD_CANCEL;
|
||||
/* can't write on a novel (unless/until it's been converted into a blank
|
||||
spellbook), but we want messages saying so to avoid "spellbook" */
|
||||
typeword = (paper->otyp == SPE_NOVEL)
|
||||
|
||||
Reference in New Issue
Block a user