Turn on menucolors automatically if any are defined

This commit is contained in:
Pasi Kallinen
2022-08-12 17:34:21 +03:00
parent d062f4c4d8
commit 1a5cd08b32
2 changed files with 2 additions and 5 deletions

View File

@@ -5517,11 +5517,6 @@ handler_menu_colors(void)
if (iflags.perm_invent)
update_inventory();
/* menu colors aren't being used yet; if any MENUCOLOR rules are
defined, remind player how to activate them */
} else if (nmc > 0) {
pline(
"To have menu colors become active, toggle 'menucolors' option to True.");
}
return optn_ok;
@@ -7252,6 +7247,7 @@ add_menu_coloring_parsed(const char *str, int c, int a)
tmp->color = c;
tmp->attr = a;
g.menu_colorings = tmp;
iflags.use_menu_color = TRUE;
return TRUE;
}