]> granicus.if.org Git - nethack/commitdiff
Fix hiding under nothing when corpse rotted away
authorPasi Kallinen <paxed@alt.org>
Thu, 12 Nov 2015 22:06:07 +0000 (00:06 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 12 Nov 2015 22:06:07 +0000 (00:06 +0200)
src/dig.c

index 17fcf4553a29a25534d42011234981eb623bee59..0d1c24187fd50ab5c3352d46557df54331060d16 100644 (file)
--- a/src/dig.c
+++ b/src/dig.c
@@ -1983,7 +1983,8 @@ long timeout;
         if (mtmp && !OBJ_AT(x, y) && mtmp->mundetected
             && hides_under(mtmp->data)) {
             mtmp->mundetected = 0;
-        }
+        } else if (x == u.ux && y == u.uy && u.uundetected && hides_under(youmonst.data))
+            (void) hideunder(&youmonst);
         newsym(x, y);
     } else if (in_invent)
         update_inventory();