summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
committerBardur Arantsson <bardur@scientician.net>2015-02-23 09:11:59 +0100
commit55a098461106d1ca4a72e30eaa572470433b6f5f (patch)
tree8be287043cae9c9277e49abe6a1830699290304b /src
parent9110cc4da22a9c7fed204b4633ac5d8b73f8d9b8 (diff)
Make make_attack_spell() static
Diffstat (limited to 'src')
-rw-r--r--src/externs.h1
-rw-r--r--src/melee2.cc2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/externs.h b/src/externs.h
index f19ccc37..0896eae4 100644
--- a/src/externs.h
+++ b/src/externs.h
@@ -833,7 +833,6 @@ extern int check_hit2(int power, int level, int ac);
extern int get_attack_power(int effect);
extern bool_ carried_make_attack_normal(int r_idx);
extern bool_ make_attack_normal(int m_idx, byte divis);
-extern bool_ make_attack_spell(int m_idx);
extern void process_monsters(void);
extern void curse_equipment(int chance, int heavy_chance);
extern void curse_equipment_dg(int chance, int heavy_chance);
diff --git a/src/melee2.cc b/src/melee2.cc
index 744e99fe..7032e511 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -2939,7 +2939,7 @@ void curse_equipment_dg(int chance, int heavy_chance)
* Note the special "MFLAG_NICE" flag, which prevents a monster from using
* any spell attacks until the player has had a single chance to move.
*/
-bool_ make_attack_spell(int m_idx)
+static bool_ make_attack_spell(int m_idx)
{
int k, chance, thrown_spell, rlev, failrate;
byte spell[96], num = 0;