]> granicus.if.org Git - nethack/commitdiff
When restoring game we should not need to invoke rnd to test for hiding.
authorBart House <bart@barthouse.com>
Sun, 30 Jun 2019 23:41:24 +0000 (16:41 -0700)
committerBart House <bart@barthouse.com>
Sun, 30 Jun 2019 23:41:24 +0000 (16:41 -0700)
src/restore.c

index 14612e08ed3738b88e41063d8b94dc210240d856..b6126a2279b3c87e3a0754ca94ba770902bdb4c0 100644 (file)
@@ -1140,7 +1140,7 @@ boolean ghostly;
            them is different now than when the level was saved */
         restore_cham(mtmp);
         /* give hiders a chance to hide before their next move */
-        if (ghostly || elapsed > (long) rnd(10))
+        if (ghostly || (elapsed > 00 && elapsed > (long) rnd(10)))
             hide_monst(mtmp);
     }