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:
@@ -3304,7 +3304,7 @@ dotip(void)
|
||||
/* either no floor container(s) or couldn't tip one or didn't tip any */
|
||||
cobj = getobj("tip", tip_ok, GETOBJ_PROMPT);
|
||||
if (!cobj)
|
||||
return ECMD_OK;
|
||||
return ECMD_CANCEL;
|
||||
|
||||
/* normal case */
|
||||
if (Is_container(cobj) || cobj->otyp == HORN_OF_PLENTY) {
|
||||
|
||||
Reference in New Issue
Block a user