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:
@@ -539,8 +539,9 @@ enum bodypart_types {
|
||||
#define BRK_KNOWN_OUTCOME (BRK_KNOWN2BREAK | BRK_KNOWN2NOTBREAK)
|
||||
|
||||
/* extended command return values */
|
||||
#define ECMD_OK 0x00 /* cmd done successfully */
|
||||
#define ECMD_TIME 0x01 /* cmd took time, uses up a turn */
|
||||
#define ECMD_OK 0x00 /* cmd done successfully */
|
||||
#define ECMD_TIME 0x01 /* cmd took time, uses up a turn */
|
||||
#define ECMD_CANCEL 0x02 /* cmd canceled by user */
|
||||
|
||||
/* values returned from getobj() callback functions */
|
||||
enum getobj_callback_returns {
|
||||
|
||||
Reference in New Issue
Block a user