]> granicus.if.org Git - nethack/commitdiff
Unhide monster when object is dropped through hole
authorPasi Kallinen <paxed@alt.org>
Sat, 9 Jul 2022 15:44:23 +0000 (18:44 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 9 Jul 2022 15:44:35 +0000 (18:44 +0300)
Monster hiding under an object on a hole, the object got
knocked down the hole, the monster kept hiding.

src/dokick.c

index 585ac8fbddfe31a847872db9f870e5e5667657f4..efe4ba5a47720bcb824d3ab1f6bfb8bd39c5d8df 100644 (file)
@@ -1603,8 +1603,10 @@ ship_object(struct obj *otmp, coordxy x, coordxy y, boolean shop_floor_obj)
         otransit_msg(otmp, nodrop, chainthere, n);
 
     if (nodrop) {
-        if (impact)
+        if (impact) {
             impact_drop(otmp, x, y, 0);
+            maybe_unhide_at(x, y);
+        }
         return FALSE;
     }