]> granicus.if.org Git - nethack/commitdiff
Remove special doinv key
authorPasi Kallinen <paxed@alt.org>
Wed, 21 Jul 2021 13:26:00 +0000 (16:26 +0300)
committerPasi Kallinen <paxed@alt.org>
Wed, 21 Jul 2021 13:33:10 +0000 (16:33 +0300)
The same thing can be done in config file with BIND=0:inventory

doc/Guidebook.mn
doc/Guidebook.tex
doc/fixes37.0
include/decl.h
src/cmd.c

index d6468d4b8c43be6cdb254742f0d962f4d3aaa07d..b5a3bbc2a7a24c93fa217caeea226333f5837d8f 100644 (file)
@@ -4761,12 +4761,6 @@ With
 .op number_pad
 only.
 Default is \(oqn\(cq.
-.lp doinv
-Show inventory.
-With
-.op number_pad
-only.
-Default is \(oq0\(cq.
 .lp fight
 Prefix key to force fight a direction.
 Default is \(oqF\(cq.
index 201ca236697f7ba1b8a14c6182e1f8386087e660..e77ba23778ec8f660ebe58d81d3ea60fffca3876 100644 (file)
@@ -5224,9 +5224,6 @@ can only be bound to a single key.
 Prefix key to start a count, to repeat a command this many times.
 With {\it number\verb+_+pad\/} only. Default is~`{\tt n}'.
 %.lp
-\item[{\bb{doinv}}]
-Show inventory. With {\it number\verb+_+pad\/} only. Default is~`{\tt 0}'.
-%.lp
 \item[{\bb{fight}}]
 Prefix key to force fight a direction. Default is~`{\tt F}'.
 %.lp
index f861e0a347760fd1208054de225be692518acbfe..df6cf8c7af58e07368ce3e22aa50f055caad91ef 100644 (file)
@@ -571,6 +571,7 @@ defer encumbrance check during polymorph to new man; newman() -> redist_attr()
 fix heap-use-after-free when attacking monster with potion
 for "a" vs "an", add ukulele and uke as exceptions for "an u<anything>"
 add new extended command #retravel
+remove special doinv key, functionality was equal to BIND=0:inventory
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index aad46e7c74acf541c35ffb7b21fabc3d69cba391..ba915f7258c913933cfcde4612172373589fb168 100644 (file)
@@ -458,7 +458,6 @@ enum nh_keyfunc {
     NHKF_FIGHT2,       /* '-' */
     NHKF_NOPICKUP,     /* 'm' */
     NHKF_RUN_NOPICKUP, /* 'M' */
-    NHKF_DOINV,        /* '0' */
 
     NHKF_REDRAW,
     NHKF_REDRAW2,
index 93205e2a35dd22251eae37147805582d90316751..7d1185f9cf40b242ff02a54abdafc28759c974d2 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -2168,10 +2168,6 @@ static const struct {
       "Prefix: request a menu (for some non-movement commands)", FALSE },
     { NHKF_COUNT,
       "Prefix: for digits when preceding a command with a count", TRUE },
-    { NHKF_DOINV, "numpad: view full inventory", TRUE },
-    /* NHKF_DOINV2 for num_pad+pcHack_compat isn't implemented:
-    { NHKF_DOINV2, "numpad: view inventory of one class of objects", TRUE },
-    */
     { NHKF_DOAGAIN , "repeat: perform the previous command again", FALSE },
     { 0, (const char *) 0, FALSE }
 };
@@ -3052,7 +3048,6 @@ static struct {
     { NHKF_FIGHT2,           '-', "fight.numpad" },
     { NHKF_NOPICKUP,         'm', "nopickup" },
     { NHKF_RUN_NOPICKUP,     'M', "run.nopickup" },
-    { NHKF_DOINV,            '0', "doinv" },
     { NHKF_REDRAW,           C('r'), "redraw" },
     { NHKF_REDRAW2,          C('l'), "redraw.numpad" },
     { NHKF_GETDIR_SELF,      '.', "getdir.self" },
@@ -3477,7 +3472,7 @@ rhack(char *cmd)
     /* handle most movement commands */
     prefix_seen = FALSE;
     g.context.travel = g.context.travel1 = 0;
-    spkey = ch2spkeys(*cmd, NHKF_RUN, NHKF_DOINV);
+    spkey = ch2spkeys(*cmd, NHKF_RUN, NHKF_RUN_NOPICKUP);
 
     switch (spkey) {
     case NHKF_RUSH2:
@@ -3537,13 +3532,6 @@ rhack(char *cmd)
         } else
             prefix_seen = TRUE;
         break;
-    case NHKF_DOINV:
-        if (!g.Cmd.num_pad)
-            break;
-        (void) ddoinv(); /* a convenience borrowed from the PC */
-        g.context.move = FALSE;
-        g.multi = 0;
-        return;
     default:
         if (movecmd(*cmd, MV_WALK)) { /* ordinary movement */
             g.context.run = 0; /* only matters here if it was 8 */
@@ -4552,9 +4540,6 @@ parse(void)
         case M('5'):
             foo = g.Cmd.spkeys[NHKF_RUN];
             break;
-        case M('0'):
-            foo = g.Cmd.spkeys[NHKF_DOINV];
-            break;
         default:
             break; /* as is */
         }