summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commit5e42771bae33ca475447dc34610addad8efdb74f (patch)
treef4bed2712fba72e1aae421fcc08da88f55241d05
parenta0cf3530d781da75417f59ce0344df1c373c358e (diff)
Remove unused variable in make_attack_spell()
-rw-r--r--src/melee2.cc6
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);