botl.c follow-up
This commit is contained in:
@@ -55,7 +55,9 @@ enum any_types {
|
||||
ANY_ULPTR, /* pointer to unsigned long */
|
||||
ANY_STR, /* pointer to null-terminated char string */
|
||||
ANY_NFUNC, /* pointer to function taking no args, returning int */
|
||||
ANY_MASK32 /* 32-bit mask (stored as unsigned long) */
|
||||
ANY_MASK32, /* 32-bit mask (stored as unsigned long) */
|
||||
|
||||
ANY_INVALID /* leave this last */
|
||||
};
|
||||
|
||||
/* menu return list */
|
||||
|
||||
@@ -2562,7 +2562,7 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile)
|
||||
"Satiated", "", "Hungry", "Weak", "Fainting", "Fainted", "Starved"
|
||||
};
|
||||
char *tmp, *how;
|
||||
int sidx = 0, i = -1, dt = -1;
|
||||
int sidx = 0, i = -1, dt = ANY_INVALID;
|
||||
int coloridx = -1, successes = 0;
|
||||
int disp_attrib = 0;
|
||||
boolean percent, changed, numeric, down, up,
|
||||
@@ -2830,7 +2830,6 @@ parse_status_hl2(char (*s)[QBUFSZ], boolean from_configfile)
|
||||
else
|
||||
hilite.behavior = BL_TH_NONE;
|
||||
|
||||
/* assert(dt >= 0); */
|
||||
hilite.anytype = dt;
|
||||
|
||||
if (hilite.behavior == BL_TH_TEXTMATCH && txt) {
|
||||
|
||||
Reference in New Issue
Block a user