summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-15 14:49:31 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-15 14:49:31 +0000
commit433a3406788005518c7ca7a2a4f5e70ff742881e (patch)
treeaabad4fe209e5b2f03ce21991c1c98ee76237ba3 /crawl-ref/source/items.cc
parented15698b38cd638552f6a0a12e0ddceef57c9e07 (diff)
downloadcrawl-ref-433a3406788005518c7ca7a2a4f5e70ff742881e.tar.gz
crawl-ref-433a3406788005518c7ca7a2a4f5e70ff742881e.zip
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
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc6
1 files changed, 4 insertions, 2 deletions
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)
{