From f156b0f66071240e1adcfe4ee429d34f649fa3b5 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 14 Aug 2022 22:32:09 +0300 Subject: [PATCH] Turn statushilites on automatically if any are defined --- doc/fixes3-7-0.txt | 1 + src/botl.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 9c2529923..08267b61e 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -999,6 +999,7 @@ turn on menucolors boolean automatically if any menucolors are defined blind hero was notified when brass lantern burned out even though it isn't warm enough to detect that by touch; manually switching the lantern on or off can be determined that way so still gives on/off message +turn on statushilites automatically if any are defined Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/botl.c b/src/botl.c index bcf97f1fe..04cd183ff 100644 --- a/src/botl.c +++ b/src/botl.c @@ -2222,6 +2222,8 @@ parse_status_hl1(char *op, boolean from_configfile) } if (badopt) return FALSE; + else if (!iflags.hilite_delta) + iflags.hilite_delta = 3L; return TRUE; } @@ -4118,8 +4120,7 @@ status_hilite_menu(void) number of turns for temporary highlights to remain visible and also when non-zero it is the flag to enable highlighting */ if (countall > 0 && !iflags.hilite_delta) - pline( - "To have highlights become active, set 'statushilites' option to non-zero."); + iflags.hilite_delta = 3L; return TRUE; }