From a4cf0d15ce8bae7dbefe95b5709a403ab2f1ccaa Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 24 Apr 2009 15:45:20 +0000 Subject: 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 --- crawl-ref/source/items.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/items.cc') 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) -- cgit v1.2.3-54-g00ecf