]> granicus.if.org Git - nethack/commitdiff
do_look bits
authorPatR <rankin@nethack.org>
Fri, 24 Apr 2015 02:25:01 +0000 (19:25 -0700)
committerPatR <rankin@nethack.org>
Fri, 24 Apr 2015 02:25:01 +0000 (19:25 -0700)
I didn't find Michael's crasher, but I did find a couple of minor
problems:

knight's saddled pony wasn't found in the file lookup either though
there is an entry for pony ("tame saddled <foo>" stripped off "tame "
but not "saddled "; "saddled <foo>" would only be found of there was
a wildcard entry key of "*<foo>", like "*horse" to catch both horse
and warhorse);

"wombat" matched the bat entry rather than reporting an unknown
entity.

dat/data.base
src/pager.c

index 57aea652e96e0f20d2171894c525cd3ee5a62aa6..52d85930d09664912ae3d1fdb2163db6dc0d0b8f 100644 (file)
@@ -430,6 +430,7 @@ barbed devil
        are quite difficult to kill.
 # takes "bat or bird" when specifying 'B'
 ~combat
+~wombat
 *bat
 bat or bird
        A bat, flitting in the darkness outside, took the wrong turn
index 036ee018c64292cb32a054a17e8c141b0c95129b..a799650b5c09ecd1d98c5876db6d18bdba88afa1 100644 (file)
@@ -1,4 +1,4 @@
-/* NetHack 3.5 pager.c $NHDT-Date: 1429408230 2015/04/19 01:50:30 $  $NHDT-Branch: master $:$NHDT-Revision: 1.62 $ */
+/* NetHack 3.5 pager.c $NHDT-Date: 1429842296 2015/04/24 02:24:56 $  $NHDT-Branch: master $:$NHDT-Revision: 1.63 $ */
 /* NetHack 3.5 pager.c $Date: 2012/01/15 09:27:06 $  $Revision: 1.41 $ */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
@@ -332,6 +332,8 @@ checkfile(inp, pm, user_typed_name, without_asking)
        dbase_str += 9;
     if (!strncmp(dbase_str, "invisible ", 10))
        dbase_str += 10;
+    if (!strncmp(dbase_str, "saddled ", 8))
+       dbase_str += 8;
     if (!strncmp(dbase_str, "statue of ", 10))
        dbase_str[6] = '\0';
     else if (!strncmp(dbase_str, "figurine of ", 12))