]> granicus.if.org Git - nethack/commitdiff
mimics in inaccessible locations
authorPatR <rankin@nethack.org>
Sun, 27 Dec 2020 13:27:02 +0000 (05:27 -0800)
committerPatR <rankin@nethack.org>
Sun, 27 Dec 2020 13:27:02 +0000 (05:27 -0800)
Suppress insane sanity check.

src/mon.c

index c6136e779bc26c5bc5d3fdbf0763ca5b98a85951..1b13ddbd6de1e43db68586be8ccda7ea18ba48f3 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -1,4 +1,4 @@
-/* NetHack 3.7 mon.c   $NHDT-Date: 1608332750 2020/12/18 23:05:50 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.361 $ */
+/* NetHack 3.7 mon.c   $NHDT-Date: 1609075599 2020/12/27 13:26:39 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.363 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /*-Copyright (c) Derek S. Ray, 2015. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -155,6 +155,7 @@ const char *msg;
         if (!(is_mimic || mtmp->meating))
             impossible("non-mimic (%s) posing as %s (%s)",
                        mptr->pmnames[NEUTRAL], what, msg);
+#if 0   /* mimics who end up in strange locations do still hide while there */
         if (!(accessible(mx, my) || passes_walls(mptr))) {
             char buf[BUFSZ];
             const char *typnam = levltyp_to_name(levl[mx][my].typ);
@@ -166,6 +167,7 @@ const char *msg;
             impossible("mimic%s concealed in inaccessible location: %s (%s)",
                        is_mimic ? "" : "ker", typnam, msg);
         }
+#endif
     }
 }