diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-17 11:00:04 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-05-17 11:00:04 +0000 |
commit | 4cac38979dea03c2323e33c854ac1092621edec0 (patch) | |
tree | 67d60b98ac2f9cdb379a33a83f4602dabbf9e699 /crawl-ref/source/dungeon.cc | |
parent | f8c5f8fbe018a1a08538d99a4b9c281a7e69709c (diff) | |
download | crawl-ref-4cac38979dea03c2323e33c854ac1092621edec0.tar.gz crawl-ref-4cac38979dea03c2323e33c854ac1092621edec0.zip |
Fix 2792807: Autoexplore attempting to open doors in bat form.
Fix 2792782: vaults not initialising blood potions properly
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9790 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 2a3f54e0c4..4f8c2e0385 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -4418,7 +4418,11 @@ static void _dgn_place_item_explicit(const item_spec &spec, item_def &item(mitm[item_made]); item.pos = where; if (is_stackable_item(item) && spec.qty > 0) + { item.quantity = spec.qty; + if (is_blood_potion(item)) + init_stack_blood_potions(item); + } if (spec.plus >= 0 && item.base_type == OBJ_BOOKS && item.sub_type == BOOK_MANUAL) |