fix #H4028 - ':' sometimes doesn't work
User had MSGTTYPE=norep "You see here" and complained that once the message had been given while walking over an object, using ':' to intentionally look at something would end up doing nothing if its feedback was a repeat of "You see here". Trying to classify which actions should deliberately override no-repeat (or no-show) will be an ordeal. This fixes the case for the ':' command where the user obviously expects feedback. I think it could be done better but am settling for something quick and easy.
This commit is contained in:
@@ -363,11 +363,13 @@ extern NEARDATA struct sysflag sysflags;
|
||||
extern NEARDATA struct instance_flags iflags;
|
||||
|
||||
/* last_msg values */
|
||||
#define PLNMSG_UNKNOWN 0 /* arbitrary */
|
||||
#define PLNMSG_ONE_ITEM_HERE 1 /* "you see <single item> here" */
|
||||
#define PLNMSG_TOWER_OF_FLAME 2 /* scroll of fire */
|
||||
#define PLNMSG_NOSHO_OVERRIDE (-2)
|
||||
#define PLNMSG_NOREP_OVERRIDE (-1)
|
||||
#define PLNMSG_UNKNOWN 0 /* arbitrary */
|
||||
#define PLNMSG_ONE_ITEM_HERE 1 /* "you see <single item> here" */
|
||||
#define PLNMSG_TOWER_OF_FLAME 2 /* scroll of fire */
|
||||
#define PLNMSG_CAUGHT_IN_EXPLOSION 3 /* explode() feedback */
|
||||
#define PLNMSG_OBJ_GLOWS 4 /* "the <obj> glows <color>" */
|
||||
#define PLNMSG_OBJ_GLOWS 4 /* "the <obj> glows <color>" */
|
||||
|
||||
/* runmode options */
|
||||
#define RUN_TPORT 0 /* don't update display until movement stops */
|
||||
|
||||
Reference in New Issue
Block a user