summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 16:35:25 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-08 16:35:25 +0000
commit657087df6ba4240fda3e82ecc05428d311e0fb1e (patch)
treed29011379e63b75fe816ab70cc68bb5f7ef18d18
parent04c68390fccf9e28a6b8b90e005e0f24635e185a (diff)
downloadcrawl-ref-657087df6ba4240fda3e82ecc05428d311e0fb1e.tar.gz
crawl-ref-657087df6ba4240fda3e82ecc05428d311e0fb1e.zip
Merge r2813 (!f handling fix) into 0.3.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.3@2814 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/item_use.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 4821fdc405..4ef8a166a7 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1202,8 +1202,7 @@ static bool fire_item_matches(const item_def &item, unsigned fire_type)
static bool fire_item_okay(const item_def &item, unsigned flags)
{
return (fire_item_matches(item, flags)
- && !(you.equip[EQ_WEAPON] == item.link && item_cursed(item))
- && check_warning_inscriptions(item, OPER_FIRE));
+ && !(you.equip[EQ_WEAPON] == item.link && item_cursed(item)));
}
static int find_fire_item_matching(unsigned fire_type, int start,
@@ -1384,8 +1383,6 @@ static bool choose_fire_target(dist &target, int &item)
void shoot_thing(void)
{
- struct bolt beam; // passed in by reference, but never used here
-
if (you.duration[DUR_BERSERKER])
{
canned_msg(MSG_TOO_BERSERK);
@@ -1403,9 +1400,11 @@ void shoot_thing(void)
}
dist target;
+ bolt beam;
if (choose_fire_target(target, item))
- throw_it( beam, item, false, 0, &target );
-} // end shoot_thing()
+ if (check_warning_inscriptions(you.inv[item], OPER_FIRE))
+ throw_it( beam, item, false, 0, &target );
+}
// Returns delay multiplier numerator (denominator should be 100) for the
// launcher with the currently equipped shield.