summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-24 15:45:20 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-24 15:45:20 +0000
commita4cf0d15ce8bae7dbefe95b5709a403ab2f1ccaa (patch)
tree9d20ab89329eb4ef9c86d8292a9b39ea9dba1256 /crawl-ref/source/items.cc
parent1c46649f35b7423825ea143b614661bc502c9cc5 (diff)
downloadcrawl-ref-a4cf0d15ce8bae7dbefe95b5709a403ab2f1ccaa.tar.gz
crawl-ref-a4cf0d15ce8bae7dbefe95b5709a403ab2f1ccaa.zip
Change Options.autopickup_on from boolean to 3-state: 1 (autopick up), 0
(autopickup off), -1 (autopickup turned off automatically). Only in the latter case does killing an invisible monster turn autopickup (back) on. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9691 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 997453a9a5..d9b919c2eb 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -2350,7 +2350,7 @@ bool can_autopickup()
// [ds] Checking for autopickups == 0 is a bad idea because
// autopickup is still possible with inscriptions and
// pickup_thrown.
- if (!Options.autopickup_on)
+ if (Options.autopickup_on <= 0)
return (false);
if (you.flight_mode() == FL_LEVITATE)