]> granicus.if.org Git - nethack/commitdiff
autopickup_exceptions build followup
authornethack.allison <nethack.allison>
Sat, 15 Nov 2003 01:17:44 +0000 (01:17 +0000)
committernethack.allison <nethack.allison>
Sat, 15 Nov 2003 01:17:44 +0000 (01:17 +0000)
- correct an obsolete, incorrect comment

src/pickup.c

index f447e9453ef41999f5392d45227d7293432a774a..ac3e43c3f0f35462de97235bc97f5123a827b100 100644 (file)
@@ -601,20 +601,8 @@ boolean
 is_autopickup_exception(obj)
 struct obj *obj;
 {
-       /* The pickup exceptions are a series of null-terminated
-        * pattern string to match the item description against.
-        * The list ends with a double null terminator.
-        *
-        * You can only match against the strings that would shown
-        * in an inventory display, not the specific exact object
-        * name, unless that object was fully identified.
-        * For example, if you specified pattern "loadstone", and
-        * you had never identified "loadstone", it wouldn't match
-        * when you came across a loadstone, because it would be
-        * identified as "a gray stone".  You could match on
-        * "gray stone" for an exception to autopickup, of course,
-        * and decide manually.  This is in keeping with autopickup
-        * being an interface convenience only.
+       /*
+        *  Does the text description of this match an exception?
         */
        char *objdesc = makesingular(xname(obj));
        struct autopickup_exception *ape = iflags.autopickup_exceptions;