From 0dff31a745aad03fdbb6f480331f18c8af83c9e0 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 29 Aug 2024 14:04:40 -0400 Subject: [PATCH] suppress display.c warning introduced by 4fb7dd2c src/display.c(997): warning C4127: conditional expression is constant --- src/display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index 0e82a6cfa..1c22ebbfe 100644 --- a/src/display.c +++ b/src/display.c @@ -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,