OSDN Git Service

#37353 (2.2.0.26) Rename place_monster_okay() to place_monster_can_escort().
authorDeskull <desull@users.sourceforge.jp>
Wed, 12 Jul 2017 11:31:51 +0000 (20:31 +0900)
committerDeskull <desull@users.sourceforge.jp>
Wed, 12 Jul 2017 11:31:51 +0000 (20:31 +0900)
src/defines.h
src/monster2.c

index 16e413d..1688868 100644 (file)
@@ -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 /*!< ゲームのバージョン番号定義(エクストラ番号) */
 
 
  /*!
index b4b5c7f..ded6882 100644 (file)
@@ -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);