diff options
author | elliptic <hyperelliptical@gmail.com> | 2014-03-29 03:35:58 -0400 |
---|---|---|
committer | elliptic <hyperelliptical@gmail.com> | 2014-03-29 03:40:12 -0400 |
commit | dae4556f83d7a5a1d1acda8eb434c20f82ae62f3 (patch) | |
tree | 875df42693ca02c3b67c1414b4b765a72064a60f /crawl-ref/source/invent.h | |
parent | 3b3a7b63ad56bfc0d7bc0369aaf750e9b99ced76 (diff) | |
download | crawl-ref-dae4556f83d7a5a1d1acda8eb434c20f82ae62f3.tar.gz crawl-ref-dae4556f83d7a5a1d1acda8eb434c20f82ae62f3.zip |
Fix amulet of faith prompting twice sometimes when removing it (qw).
There were two separate issues that could cause this. First, when wearing
at least one ring as well as the amulet, it would give the prompt once when
choosing the amulet to remove and then again when actually removing it.
Second, prompts were sometimes checked right before calling remove_ring()
and then again inside remove_ring(), for instance when swapping to a
different amulet.
I think this fixes it without breaking anything else.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r-- | crawl-ref/source/invent.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 20a3302f48..4eb7302f5d 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -190,7 +190,8 @@ int prompt_invent_item(const char *prompt, int excluded_slot = -1, int *const count = NULL, operation_types oper = OPER_ANY, - bool allow_list_known = false); + bool allow_list_known = false, + bool do_warning = true); vector<SelItem> select_items( const vector<const item_def*> &items, |