]> granicus.if.org Git - nethack/commitdiff
warning about hidden monsters
authorcohrs <cohrs>
Fri, 15 Feb 2002 06:57:19 +0000 (06:57 +0000)
committercohrs <cohrs>
Fri, 15 Feb 2002 06:57:19 +0000 (06:57 +0000)
If a monster is hiding, such as underwater, general warning should locate it

src/display.c

index 97a4ef2b4e674f4758c1bb81d4d25261effc7c2b..268f7cf6bf99440f6c0cdfb4523d8f8051473614 100644 (file)
@@ -681,6 +681,8 @@ newsym(x,y)
                /* also gets rid of any invisibility glyph */
                display_monster(x, y, mon, see_it ? PHYSICALLY_SEEN : DETECTED, worm_tail);
            }
+           else if (mon && mon_warning(mon) && !is_worm_tail(mon))
+               display_warning(mon);
            else if (glyph_is_invisible(levl[x][y].glyph))
                map_invisible(x, y);
            else