]> granicus.if.org Git - nethack/commitdiff
Fix monster hide status when moving ball & chain
authorPasi Kallinen <paxed@alt.org>
Tue, 15 Dec 2020 15:35:07 +0000 (17:35 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 15 Dec 2020 15:35:18 +0000 (17:35 +0200)
src/hack.c

index 3566831a23464540f16da4e0fe11af6746379f88..c8c30d900e7a6c34753ae8d131677df253ac1a01 100644 (file)
@@ -572,6 +572,7 @@ register xchar ox, oy;
 {
     /* optimize by leaving on the fobj chain? */
     remove_object(obj);
+    maybe_unhide_at(obj->ox, obj->oy);
     newsym(obj->ox, obj->oy);
     place_object(obj, ox, oy);
     newsym(ox, oy);