From 635a2c2229884aed7bee08796021e6dbe4d2e101 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Tue, 29 Jul 2008 23:56:58 +0000 Subject: Bug 2031257: can't fire-no-quiver ('F') if there are no thorwable items in inventory. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6724 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/invent.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 9b12c69551..3d05ec4bf1 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -1320,6 +1320,12 @@ int prompt_invent_item( const char *prompt, int *const count, operation_types oper ) { + if (!_any_items_to_select(type_expect) && type_expect == OSEL_THROWABLE + && oper == OPER_FIRE && mtype == MT_INVLIST) + { + type_expect = OSEL_ANY; + } + if (!_any_items_to_select(type_expect) && type_expect != OSEL_WIELD && mtype == MT_INVLIST) { -- cgit v1.2.3-54-g00ecf