nttty hilite_pet follow-up

I didn't mean to override for any color in the mask. My
earlier patch caused it to make green, blue, or red all
become black (which still looked better than white on
grey).

This gets it right (famous last words), and only makes
the text character's color black if it is actually white
or bright white.
This commit is contained in:
nethack.allison
2002-02-24 16:16:59 +00:00
parent 575228db06
commit 1c6b03c836

View File

@@ -791,7 +791,8 @@ term_start_attr(int attr)
break;
case ATR_INVERSE:
/* Suggestion by Lee Berger */
if (currentcolor & (FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED))
if ((currentcolor & (FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED)) ==
(FOREGROUND_GREEN|FOREGROUND_BLUE|FOREGROUND_RED))
currentcolor = 0;
currentbackground = (BACKGROUND_RED|BACKGROUND_BLUE|BACKGROUND_GREEN);
colorchange = TRUE;