]> granicus.if.org Git - nethack/commit
more autopickup_exception
authornethack.allison <nethack.allison>
Sat, 15 Nov 2003 23:15:01 +0000 (23:15 +0000)
committernethack.allison <nethack.allison>
Sat, 15 Nov 2003 23:15:01 +0000 (23:15 +0000)
commit94ff3505b4a672cc583eaeb4ce8a1024d111013f
tree6d1e5c03af137b1ec99868994d58e0528fb575be
parentf1129d502f5f561e864034a356993104943d1f97
more autopickup_exception

An optimization.

Split the patterns into two chains, one for things you want "always picked up", and one for things you want "never picked up".  That way, the
entire exception list isn't being checked twice, once for each type of
check.  The check for things to "always pick up" only checks the
chain at the AP_GRAB index, and the check for things to "never
pick up" only checks the chain at the AP_LEAVE index.

- Also modifies the toggle autopickup '@' message
appropriately for the AUTOPICKUP_EXCEPTIONS build.
(it just tacks on ", with some exceptions" if there are some)
include/flag.h
src/options.c
src/pickup.c