summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-04-14 06:39:21 +0200
committerBardur Arantsson <bardur@scientician.net>2015-04-14 06:39:21 +0200
commite1c6f994afa6297a0108ff5cb634d718492fae8d (patch)
tree34e7e698b46df93f2304c891ad3965dad57ed406
parentcba7adbe84145c9fafaeabcf5dbbde3f5e811237 (diff)
Make target_able static
-rw-r--r--src/xtra2.cc2
-rw-r--r--src/xtra2.hpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/xtra2.cc b/src/xtra2.cc
index 7f20b466..019d21c4 100644
--- a/src/xtra2.cc
+++ b/src/xtra2.cc
@@ -3824,7 +3824,7 @@ static void ang_sort(vptr u, vptr v, int n)
* Future versions may restrict the ability to target "trappers"
* and "mimics", but the semantics is a little bit weird.
*/
-bool_ target_able(int m_idx)
+static bool target_able(int m_idx)
{
monster_type *m_ptr = &m_list[m_idx];
diff --git a/src/xtra2.hpp b/src/xtra2.hpp
index 57e4fda3..e7cf0057 100644
--- a/src/xtra2.hpp
+++ b/src/xtra2.hpp
@@ -72,7 +72,6 @@ extern bool_ mon_take_hit(int m_idx, int dam, bool_ *fear, cptr note);
extern bool_ change_panel(int dy, int dx);
extern void verify_panel(void);
extern cptr look_mon_desc(int m_idx);
-extern bool_ target_able(int m_idx);
extern bool_ target_okay(void);
extern bool_ target_set(int mode);
extern bool_ get_aim_dir(int *dp);