From 94ceb87517474ac372a41a52a3448104f51435bf Mon Sep 17 00:00:00 2001 From: pauldubois Date: Mon, 14 Apr 2008 07:35:39 +0000 Subject: Quiver work: + bug: if wield sling and no quiver, then pick up stones: should quiver + implement: save and load (does not break saves) + remove: fire_quiver_best + remove: you.quiver + bug: identifying items doesn't update quiver properly + rename: you.quiver_change -> you.redraw_quiver + test no item because of =f git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4227 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 6ac82b95d4..482291666d 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -350,7 +350,7 @@ bool wield_weapon(bool auto_wield, int slot, bool show_weff_messages) you.time_taken /= 2; you.wield_change = true; - you.quiver_change = true; + you.m_quiver->on_weapon_changed(); you.turn_is_over = true; return (true); @@ -1432,7 +1432,7 @@ static bool _fire_choose_item_and_target(int& slot, dist& target) { you.m_quiver->on_item_fired_fi(you.inv[beh.m_slot]); } - you.quiver_change = true; + you.redraw_quiver = true; slot = beh.m_slot; return (true); @@ -3405,7 +3405,6 @@ void inscribe_item() you.inv[item_slot].inscription = std::string(buf); you.wield_change = true; - you.quiver_change = true; } else { -- cgit v1.2.3-54-g00ecf