suppress display.c warning introduced by 4fb7dd2c

src/display.c(997): warning C4127: conditional expression is constant
This commit is contained in:
nhmall
2024-08-29 14:04:40 -04:00
parent e645c0b4bb
commit 0dff31a745

View File

@@ -982,6 +982,8 @@ newsym(coordxy x, coordxy y)
if (see_self)
display_self();
} else {
boolean show = FALSE;
see_it = mon && (mon_visible(mon)
|| (!worm_tail && (tp_sensemon(mon)
|| MATCH_WARN_OF_MON(mon))));
@@ -994,7 +996,7 @@ newsym(coordxy x, coordxy y)
if (tt == BEAR_TRAP || is_pit(tt) || tt == WEB)
trap->tseen = 1;
}
_map_location(x, y, 0); /* map under the monster */
_map_location(x, y, show); /* map under the monster */
/* also gets rid of any invisibility glyph */
display_monster(x, y, mon,
see_it ? PHYSICALLY_SEEN : DETECTED,