'300' isn't portable char; fix for ANSI C
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Jan 1988 09:44:14 +0000 (01:44 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Jan 1988 09:44:14 +0000 (01:44 -0800)
SCCS-vsn: games/rogue/inventory.c 5.2

usr/src/games/rogue/inventory.c

index 32dd7b0..aa8bd7d 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)inventory.c        5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)inventory.c        5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "rogue.h"
 #endif /* not lint */
 
 #include "rogue.h"
@@ -140,9 +140,9 @@ struct id_com_s com_id_tab[COMS] = {
        'b',    "b       down & left",
        'c',    "c       call object",
        'n',    "n       down & right",
        'b',    "b       down & left",
        'c',    "c       call object",
        'n',    "n       down & right",
-       '300',  "<SHIFT><dir>: run that way",
+       NULL,   "<SHIFT><dir>: run that way",
        ')',    ")       print current weapon",
        ')',    ")       print current weapon",
-       '300',  "<CTRL><dir>: run till adjacent",
+       NULL,   "<CTRL><dir>: run till adjacent",
        ']',    "]       print current armor",
        'f',    "f<dir>  fight till death or near death",
        '=',    "=       print current rings",
        ']',    "]       print current armor",
        'f',    "f<dir>  fight till death or near death",
        '=',    "=       print current rings",