avoid another magic number
Some of the hardcoded +1 scattered about are likely invlet_gold or invlet_overflow, but I didn't hunt those down.
This commit is contained in:
@@ -683,7 +683,7 @@ int
|
||||
curses_character_dialog(const char **choices, const char *prompt)
|
||||
{
|
||||
int count, count2, ret, curletter;
|
||||
char used_letters[52];
|
||||
char used_letters[invlet_basic]; /* a..zA..Z */
|
||||
anything identifier;
|
||||
menu_item *selected = NULL;
|
||||
winid wid = curses_get_wid(NHW_MENU);
|
||||
|
||||
@@ -261,8 +261,7 @@ static int bordercol[border_elements] = { 0, 0, 0 }; /* left, middle, right */
|
||||
static int ttyinvmode = InvNormal; /* enum is in wintype.h */
|
||||
static int inuse_only_start = 0; /* next slot to use for in-use-only mode */
|
||||
static boolean done_tty_perm_invent_init = FALSE;
|
||||
enum { tty_slots = 1 + 52 + 1 }; /* 54 [0..53]: for !show_gold a..zA..Z with
|
||||
* 2 unused, or for 'show_gold' $a..zA..Z# */
|
||||
enum { tty_slots = invlet_basic + inv_special_slotcount }; /* 52 + 2 */
|
||||
static boolean slot_tracker[tty_slots];
|
||||
static long last_glyph_reset_when;
|
||||
#ifndef NOINVSYM /* invent.c */
|
||||
|
||||
Reference in New Issue
Block a user