corridor engravings in black and white

The default engraving-in-corridor character is the same as the default
corridor symbol (and also default lit corridor one), distinguished by
color.  Show it differently (in inverse vidoe, like lava vs water and
sink vs fountain) if color is Off.

It might be better to change the engraving-in-room symbol to be the
same as the room one so that they'll be more consistent with corridors;
color is probably sufficient without resorting to back-tick.  But this
update hasn't done that.
This commit is contained in:
PatR
2023-09-12 01:34:47 -07:00
parent 9016d65df4
commit 6636db94e7
6 changed files with 54 additions and 39 deletions

View File

@@ -882,9 +882,12 @@ curses_print_glyph(
else /* if (iflags.use_inverse) */
attr = A_REVERSE;
}
/* water and lava look the same except for color; when color is off,
render lava in inverse video so that they look different */
if ((special & (MG_BW_LAVA | MG_BW_ICE)) != 0 && iflags.use_inverse) {
/* water and lava look the same except for color; when color is off
(checked by core), render lava in inverse video so that it looks
different from water; similar for floor vs ice, fountain vs sink,
and corridor vs engranving-in-corridor */
if ((special & (MG_BW_LAVA | MG_BW_ICE | MG_BW_SINK | MG_BW_ENGR))
!= 0 && iflags.use_inverse) {
/* reset_glyphmap() only sets MG_BW_foo if color is off */
attr = A_REVERSE;
}