]> granicus.if.org Git - nethack/commitdiff
autopickup_exception
authornethack.allison <nethack.allison>
Tue, 2 Dec 2003 03:14:50 +0000 (03:14 +0000)
committernethack.allison <nethack.allison>
Tue, 2 Dec 2003 03:14:50 +0000 (03:14 +0000)
use doname() instead of xname()

include/patchlevel.h
src/pickup.c

index b28f95d02cda8d928d1593fb60f851b5308c6e7b..5366918c47ca76b8077b18c59727ab9abfe4e926 100644 (file)
@@ -58,7 +58,6 @@
  *  X11 player selection fixes, one of which could be fatal
  *  Eliminated a gold-in-shop-container cheat
  *  Include bones file version compatibility info in options file
- *  Synchronize save files and compression algorithms among various Mac ports
  */
 
 /*  Patch 2, August 30, 2003
index b453f755341f61c684dc2243b70a1f9bd35d3fa1..af7216f4834c2e68c92ea3eba7b6d6b5f75e9ad1 100644 (file)
@@ -605,7 +605,7 @@ boolean grab;        /* forced pickup, rather than forced leave behind? */
        /*
         *  Does the text description of this match an exception?
         */
-       char *objdesc = makesingular(xname(obj));
+       char *objdesc = makesingular(doname(obj));
        struct autopickup_exception *ape = (grab) ?
                                        iflags.autopickup_exceptions[AP_GRAB] :
                                        iflags.autopickup_exceptions[AP_LEAVE];