From 633430aeaae545b7180382c6602b7bafba9f99b5 Mon Sep 17 00:00:00 2001 From: Deskull Date: Wed, 12 Jul 2017 20:31:51 +0900 Subject: [PATCH] #37353 (2.2.0.26) Rename place_monster_okay() to place_monster_can_escort(). --- src/defines.h | 2 +- src/monster2.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/defines.h b/src/defines.h index 16e413d37..168886813 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,7 +53,7 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 25 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 26 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! diff --git a/src/monster2.c b/src/monster2.c index b4b5c7f96..ded68826c 100644 --- a/src/monster2.c +++ b/src/monster2.c @@ -3042,11 +3042,8 @@ static bool place_monster_one(int who, int y, int x, int r_idx, u32b mode) { /* Access the location */ cave_type *c_ptr = &cave[y][x]; - monster_type *m_ptr; - monster_race *r_ptr = &r_info[r_idx]; - cptr name = (r_name + r_ptr->name); int cmi; @@ -3641,7 +3638,7 @@ static int place_monster_m_idx = 0; * @param r_idx チェックするモンスター種族のID * @return 護衛にできるならばtrue */ -static bool place_monster_okay(int r_idx) +static bool place_monster_can_escort(int r_idx) { monster_race *r_ptr = &r_info[place_monster_idx]; monster_type *m_ptr = &m_list[place_monster_m_idx]; @@ -3757,7 +3754,7 @@ bool place_monster_aux(int who, int y, int x, int r_idx, u32b mode) if (!cave_empty_bold2(ny, nx)) continue; /* Prepare allocation table */ - get_mon_num_prep(place_monster_okay, get_monster_hook2(ny, nx)); + get_mon_num_prep(place_monster_can_escort, get_monster_hook2(ny, nx)); /* Pick a random race */ z = get_mon_num(r_ptr->level); -- 2.11.0