summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorelliptic <hyperelliptical@gmail.com>2014-03-18 02:34:20 -0400
committerelliptic <hyperelliptical@gmail.com>2014-03-18 02:37:02 -0400
commitb37810154accd69650df9b1241f8f0232cedf236 (patch)
treeed570857772e5bed8de6f1bd0e32811904c9a5cf /crawl-ref/source/misc.cc
parentb08d52d42e5bbb60589ad52762801181c3197ce6 (diff)
downloadcrawl-ref-b37810154accd69650df9b1241f8f0232cedf236.tar.gz
crawl-ref-b37810154accd69650df9b1241f8f0232cedf236.zip
Fix blood coagulation occasionally causing a burden discrepancy.
This could cause autopickup to burden the player with no prompt.
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index d2d0332822..f3b826626b 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -619,7 +619,9 @@ bool maybe_coagulate_blood_potions_inv(item_def &blood)
ASSERT(props2.exists("timer"));
CrawlVector &timer2 = props2["timer"].get_vector();
- if (!dec_inv_item_quantity(blood.link, coag_count + rot_count))
+ // Don't recalculate burden here, since we will add the same
+ // same number of potions back in.
+ if (!dec_inv_item_quantity(blood.link, coag_count + rot_count, true))
_compare_blood_quantity(blood, timer.size());
// Update timer -> push(pop).