Fix monster hiding under hatching egg staying hidden

This commit is contained in:
Pasi Kallinen
2020-10-24 18:27:34 +03:00
parent 1b37ac6280
commit 22ca1ae4da
2 changed files with 3 additions and 0 deletions

View 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

View 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);