]> granicus.if.org Git - nethack/commitdiff
Fix monster hiding under hatching egg staying hidden
authorPasi Kallinen <paxed@alt.org>
Sat, 24 Oct 2020 15:27:34 +0000 (18:27 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 24 Oct 2020 15:32:08 +0000 (18:32 +0300)
doc/fixes37.0
src/timeout.c

index 4e19df77c60f9f982b248376adf70d2a14488ff2..876a2aa128941abc625c227e996fac1d010f18a6 100644 (file)
@@ -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
index 80e1f10ea120693872b7d94fb2c9dce58a53cb4f..9782401b961b1af300bd38ea0b8d1039220c6486 100644 (file)
@@ -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);