diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 13:31:45 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-29 13:31:45 +0000 |
commit | 8c38a749feba7593d146377ac6e4b090f8228e64 (patch) | |
tree | 6669be5ff4f09369c112a9414601eed81edc9d25 /crawl-ref/source/acr.cc | |
parent | d1a6e695915d4d649f3517f4c131f940c7aacc8f (diff) | |
download | crawl-ref-8c38a749feba7593d146377ac6e4b090f8228e64.tar.gz crawl-ref-8c38a749feba7593d146377ac6e4b090f8228e64.zip |
Fix good random secondary choices during character selection.
Re-enable quivering with '(' - still buggy, and I'm trying to work out
why, but at least it works for some ammo now.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6218 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index fb3514c1be..8bf0afedfb 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -2415,10 +2415,14 @@ void process_command( command_type cmd ) int cur; you.m_quiver->get_desired_item(NULL, &cur); const int next = get_next_fire_item(cur, +1); +#ifdef DEBUG_QUIVER + mprf(MSGCH_DIAGNOSTICS, "next slot: %d, item: %s", next, + next == -1 ? "none" : you.inv[next].name(DESC_PLAIN).c_str()); +#endif if (next != -1) { - // kind of a hacky way to get quiver to change - you.m_quiver->on_item_fired(you.inv[next]); + // Kind of a hacky way to get quiver to change. + you.m_quiver->on_item_fired(you.inv[next], true); } break; } |