summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-03-10 18:41:54 +0100
committerBardur Arantsson <bardur@scientician.net>2016-03-10 19:02:23 +0100
commit583450263b633c958e33b3da0dcbfc56e80da65e (patch)
tree24db52756e60961905c91c35155cfff0fe8c8170
parent018bfc6f736dd95dbf3315e5a2ba71204555ffdc (diff)
Remove unused parameter from use_symbiotic_power()
-rw-r--r--src/cmd5.cc4
-rw-r--r--src/cmd5.hpp2
-rw-r--r--src/cmd7.cc8
3 files changed, 6 insertions, 8 deletions
diff --git a/src/cmd5.cc b/src/cmd5.cc
index 9ca22adf..848be2e6 100644
--- a/src/cmd5.cc
+++ b/src/cmd5.cc
@@ -662,7 +662,7 @@ std::vector<int> extract_monster_powers(monster_race const *r_ptr, bool great)
/*
* Use a power of the monster in symbiosis
*/
-int use_symbiotic_power(int r_idx, bool_ great, bool_ only_number, bool_ no_cost)
+int use_symbiotic_power(int r_idx, bool_ great, bool_ no_cost)
{
int power = -1;
@@ -696,8 +696,6 @@ int use_symbiotic_power(int r_idx, bool_ great, bool_ only_number, bool_ no_cost
return (0);
}
- if (only_number) return (num);
-
/* Nothing chosen yet */
flag = FALSE;
diff --git a/src/cmd5.hpp b/src/cmd5.hpp
index 892b57f4..4ec84593 100644
--- a/src/cmd5.hpp
+++ b/src/cmd5.hpp
@@ -11,7 +11,7 @@ extern void do_cmd_browse(void);
extern void fetch(int dir, int wgt, bool_ require_los);
extern void do_poly_self(void);
extern cptr symbiote_name(bool_ capitalize);
-extern int use_symbiotic_power(int r_idx, bool_ great, bool_ only_number, bool_ no_cost);
+extern int use_symbiotic_power(int r_idx, bool_ great, bool_ no_cost);
extern bool_ is_ok_spell(s32b spell_idx, s32b pval);
extern s32b get_school_spell(cptr do_what, s16b force_book);
extern void do_cmd_copy_spell(void);
diff --git a/src/cmd7.cc b/src/cmd7.cc
index aa053a48..ffb136cb 100644
--- a/src/cmd7.cc
+++ b/src/cmd7.cc
@@ -1841,7 +1841,7 @@ void do_cmd_possessor()
bool_ use_great = (get_skill_scale(SKILL_POSSESSION, 100) >= r_info[p_ptr->body_monster].level);
/* Select power */
- use_symbiotic_power(p_ptr->body_monster, use_great, FALSE, FALSE);
+ use_symbiotic_power(p_ptr->body_monster, use_great, FALSE);
if (p_ptr->csp < 0)
{
@@ -4268,7 +4268,7 @@ void do_cmd_symbiotic(void)
break;
}
- if (0 > use_symbiotic_power(o_ptr->pval, FALSE, FALSE, TRUE))
+ if (0 > use_symbiotic_power(o_ptr->pval, FALSE, TRUE))
return;
break;
@@ -4307,7 +4307,7 @@ void do_cmd_symbiotic(void)
break;
}
- if(0 > use_symbiotic_power(o_ptr->pval, TRUE, FALSE, TRUE))
+ if(0 > use_symbiotic_power(o_ptr->pval, TRUE, TRUE))
return;
break;
@@ -4335,7 +4335,7 @@ void do_cmd_symbiotic(void)
if (!c_ptr->m_idx) break;
m_ptr = &m_list[c_ptr->m_idx];
- use_symbiotic_power(m_ptr->r_idx, TRUE, FALSE, TRUE);
+ use_symbiotic_power(m_ptr->r_idx, TRUE, TRUE);
break;
}