]> granicus.if.org Git - nethack/commitdiff
merge branch NetHack-3.6 part 2
authornhmall <nhmall@nethack.org>
Mon, 17 Jun 2019 19:25:10 +0000 (15:25 -0400)
committernhmall <nhmall@nethack.org>
Mon, 17 Jun 2019 19:25:10 +0000 (15:25 -0400)
src/cmd.c
src/options.c

index f734c9bb76579d08b11b45b52f85f551caa2c337..1797f49b2e77f6577bd4a11fbfa6f461190a8f85 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -4559,9 +4559,9 @@ randomkey()
     case 10:
     case 11:
     case 12:
-        c = Cmd.dirchars[rn2(8)];
+        c = g.Cmd.dirchars[rn2(8)];
         if (!rn2(7))
-            c = !Cmd.num_pad ? (!rn2(3) ? C(c) : (c + 'A' - 'a')) : M(c);
+            c = !g.Cmd.num_pad ? (!rn2(3) ? C(c) : (c + 'A' - 'a')) : M(c);
         break;
     case 13:
         c = (char) rn1('9' - '0' + 1, '0');
index cffc58efcc40da4fa0157d8a7f5db03f2a31638a..c7aa7bce5d3fb5ce1e6fc2afa0087820b0a667d0 100644 (file)
@@ -3979,7 +3979,7 @@ boolean tinitial, tfrom_file;
                     return FALSE;
                 }
             }
-            if (iflags.debug_fuzzer && !initial) {
+            if (iflags.debug_fuzzer && !g.opt_initial) {
                 /* don't randomly toggle this/these */
                 if (boolopt[i].addr == &flags.silent)
                     return TRUE;