diff options
author | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 01:10:43 -0800 |
---|---|---|
committer | Stefan O'Rear <stefanor@cox.net> | 2009-12-30 01:10:43 -0800 |
commit | 41fe930161f170b0b71eddb284a6568f08ecb6e2 (patch) | |
tree | 616ba78b0671e2c3847f774fea069f542139cb0e /crawl-ref/source/items.cc | |
parent | e4206960f898f3ffc8ff7d507dfb227a232b085b (diff) | |
download | crawl-ref-41fe930161f170b0b71eddb284a6568f08ecb6e2.tar.gz crawl-ref-41fe930161f170b0b71eddb284a6568f08ecb6e2.zip |
Don't generate splash messages twice
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 1437238afd..9a060c2933 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1773,7 +1773,7 @@ bool move_item_to_grid( int *const obj, const coord_def& p, bool silent ) while (item.quantity > 1) { // If we can't copy the items out, we lose the surplus. - if (copy_item_to_grid(item, p, 1, false)) + if (copy_item_to_grid(item, p, 1, false, true)) --item.quantity; else item.quantity = 1; @@ -1883,7 +1883,7 @@ bool copy_item_to_grid( const item_def &item, const coord_def& p, origin_set_unknown(new_item); } - move_item_to_grid( &new_item_idx, p ); + move_item_to_grid( &new_item_idx, p, true ); if (is_blood_potion(item) && item.quantity != quant_drop) // partial drop only { |