Turn on menucolors automatically if any are defined
This commit is contained in:
@@ -995,6 +995,7 @@ pyrolisks get a mundane bite attack
|
|||||||
chances of random item being an artifact depends on already existing artifacts
|
chances of random item being an artifact depends on already existing artifacts
|
||||||
monsters can zap wands of teleportation at hero
|
monsters can zap wands of teleportation at hero
|
||||||
piranhas devour corpses
|
piranhas devour corpses
|
||||||
|
turn on menucolors boolean automatically if any menucolors are defined
|
||||||
|
|
||||||
|
|
||||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||||
|
|||||||
+1
-5
@@ -5517,11 +5517,6 @@ handler_menu_colors(void)
|
|||||||
if (iflags.perm_invent)
|
if (iflags.perm_invent)
|
||||||
update_inventory();
|
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;
|
return optn_ok;
|
||||||
|
|
||||||
@@ -7252,6 +7247,7 @@ add_menu_coloring_parsed(const char *str, int c, int a)
|
|||||||
tmp->color = c;
|
tmp->color = c;
|
||||||
tmp->attr = a;
|
tmp->attr = a;
|
||||||
g.menu_colorings = tmp;
|
g.menu_colorings = tmp;
|
||||||
|
iflags.use_menu_color = TRUE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user