From 433a3406788005518c7ca7a2a4f5e70ff742881e Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 15 Jul 2007 14:49:31 +0000 Subject: Fixed chunks unstacking when dropped (cbus). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1875 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index e9c781c5ce..e0f4457016 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1453,8 +1453,10 @@ void move_item_to_grid( int *const obj, int x, int y ) } } // Non-stackable item that's been fudge-stacked (monster throwing weapons). - // Explode the stack when dropped. - else if (mitm[*obj].quantity > 1) + // Explode the stack when dropped. We have to special case chunks, ew. + else if (mitm[*obj].quantity > 1 + && (mitm[*obj].base_type != OBJ_FOOD + || mitm[*obj].sub_type != FOOD_CHUNK)) { while (mitm[*obj].quantity > 1) { -- cgit v1.2.3-54-g00ecf