diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 5e42771bae33ca475447dc34610addad8efdb74f (patch) | |
tree | f4bed2712fba72e1aae421fcc08da88f55241d05 | |
parent | a0cf3530d781da75417f59ce0344df1c373c358e (diff) |
Remove unused variable in make_attack_spell()
-rw-r--r-- | src/melee2.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/melee2.cc b/src/melee2.cc index a0f43492..6d025511 100644 --- a/src/melee2.cc +++ b/src/melee2.cc @@ -2746,9 +2746,6 @@ static bool_ make_attack_spell(int m_idx) /* Extract the "see-able-ness" */ bool_ seen = (!blind && m_ptr->ml); - /* Assume "normal" target */ - bool_ normal = TRUE; - /* Target location */ if (m_ptr->target > -1) { @@ -2787,8 +2784,7 @@ static bool_ make_attack_spell(int m_idx) /* Sometimes forbid inate attacks (breaths) */ if (rand_int(100) >= (chance * 2)) no_inate = TRUE; - /* Hack -- require projectable player */ - if (normal) + /* Require projectable player */ { /* Check range */ if (m_ptr->cdis > MAX_RANGE) return (FALSE); |