summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 14:14:04 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-29 14:14:04 +0000
commitf90424b8c2cb4d62ef5e34062cc6903918ecd37f (patch)
tree85a1868739f8ad9bb222cf527f823181af9e3153 /crawl-ref/source/item_use.cc
parenta2f0ab5525c06209f40a011bc7080c8b7d69b5e3 (diff)
downloadcrawl-ref-f90424b8c2cb4d62ef5e34062cc6903918ecd37f.tar.gz
crawl-ref-f90424b8c2cb4d62ef5e34062cc6903918ecd37f.zip
Force quiver to attempt to use the exact same item in inventory (slot
and all, if it still exists) before accepting any item that happens to have the same properties (base + subtype, plusses etc.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6220 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index becf94c833..9581778641 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1276,17 +1276,10 @@ int get_next_fire_item(int current, int direction)
for (unsigned i = 0; i < fire_order.size(); i++)
{
-#ifdef DEBUG_QUIVER
- mprf(MSGCH_DIAGNOSTICS, "i: %d, slot: %d", i, fire_order[i]);
-#endif
if (fire_order[i] == current)
{
unsigned next =
(i + direction + fire_order.size()) % fire_order.size();
-#ifdef DEBUG_QUIVER
- mprf(MSGCH_DIAGNOSTICS, "i: %d (%d), next: %d (%d), size: %d",
- i, current, next, fire_order[next], fire_order.size());
-#endif
return fire_order[next];
}
}