diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-03-07 16:55:41 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-03-07 16:55:41 +0100 |
commit | 09f4a4cea91c4cb80f987ad903c3d2748fa73e8c (patch) | |
tree | 9a7c91abeba2710a7129eb6d010bffb29f0345eb /src | |
parent | d0cd123a92b2340fa1d9d20cae1dcd1afd0a5e87 (diff) |
Make a couple of declarations static
Diffstat (limited to 'src')
-rw-r--r-- | src/externs.h | 1 | ||||
-rw-r--r-- | src/monster2.cc | 3 | ||||
-rw-r--r-- | src/variable.cc | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/externs.h b/src/externs.h index 37e2ded4..281ffa0e 100644 --- a/src/externs.h +++ b/src/externs.h @@ -156,7 +156,6 @@ extern s16b o_cnt; extern s16b m_max; extern s16b m_cnt; extern s16b hack_m_idx; -extern s16b hack_m_idx_ii; extern int total_friends; extern s32b total_friend_levels; extern int leaving_quest; diff --git a/src/monster2.cc b/src/monster2.cc index bb263026..6f74a86a 100644 --- a/src/monster2.cc +++ b/src/monster2.cc @@ -2106,8 +2106,9 @@ bool_ kind_is_randart(int k_idx) * except for the savefile loading code. */ bool_ bypass_r_ptr_max_num = FALSE; -int place_monster_result = 0; +static int place_monster_result = 0; bool_ place_monster_one_no_drop = FALSE; +static s16b hack_m_idx_ii = 0; s16b place_monster_one(int y, int x, int r_idx, int ego, bool_ slp, int status) { int i; diff --git a/src/variable.cc b/src/variable.cc index 4f6c072e..888a4182 100644 --- a/src/variable.cc +++ b/src/variable.cc @@ -132,7 +132,6 @@ s16b m_max = 1; /* Number of allocated monsters */ s16b m_cnt = 0; /* Number of live monsters */ s16b hack_m_idx = 0; /* Hack -- see "process_monsters()" */ -s16b hack_m_idx_ii = 0; char summon_kin_type; /* Hack, by Julian Lighton: summon 'relatives' */ int total_friends = 0; |