From: Pasi Kallinen Date: Sat, 24 Oct 2020 15:27:34 +0000 (+0300) Subject: Fix monster hiding under hatching egg staying hidden X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22ca1ae4da13f6c6d91f0c390d320a4c8f66cdf0;p=nethack Fix monster hiding under hatching egg staying hidden --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 4e19df77c..876a2aa12 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -286,6 +286,7 @@ monster xorns could pass through iron bars but not eat them; monster rock hero poly'd into rust monster could implicitly eat bars when adjacent by trying to move there, now when in rock mole form too; in xorn form can explicitly eat them via 'e' after moving onto their spot +monster hiding under an egg that hatched was kept hidden Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/timeout.c b/src/timeout.c index 80e1f10ea..9782401b9 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -985,6 +985,8 @@ long timeout; /* free egg here because we use it above */ obj_extract_self(egg); obfree(egg, (struct obj *) 0); + if ((mon = m_at(x,y)) && !hideunder(mon) && cansee(x, y)) + redraw = TRUE; } if (redraw) newsym(x, y);