OSDN Git Service

[Refactor] #define MONSTER_HORDE による分岐処理削除 / Delete #define branch by MONSTER_HORDE.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 24 Nov 2018 00:48:19 +0000 (09:48 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 24 Nov 2018 00:48:19 +0000 (09:48 +0900)
src/monster2.c
src/wizard2.c
src/z-config.h

index 6e01834..1f82bb3 100644 (file)
@@ -3729,9 +3729,6 @@ bool place_monster(POSITION y, POSITION x, BIT_FLAGS mode)
        return (FALSE);
 }
 
-
-#ifdef MONSTER_HORDES
-
 /*!
  * @brief 指定地点に1種類のモンスター種族による群れを生成する
  * @param y 生成地点y座標
@@ -3795,9 +3792,6 @@ bool alloc_horde(POSITION y, POSITION x)
        return TRUE;
 }
 
-#endif /* MONSTER_HORDES */
-
-
 /*!
  * @brief ダンジョンの主生成を試みる / Put the Guardian
  * @param def_val 現在の主の生成状態
@@ -3888,7 +3882,6 @@ bool alloc_monster(POSITION dis, BIT_FLAGS mode)
        }
 
 
-#ifdef MONSTER_HORDES
        if (randint1(5000) <= dun_level)
        {
                if (alloc_horde(y, x))
@@ -3899,14 +3892,9 @@ bool alloc_monster(POSITION dis, BIT_FLAGS mode)
        }
        else
        {
-#endif /* MONSTER_HORDES */
-
                /* Attempt to place the monster, allow groups */
                if (place_monster(y, x, (mode | PM_ALLOW_GROUP))) return (TRUE);
-
-#ifdef MONSTER_HORDES
        }
-#endif /* MONSTER_HORDES */
 
        return (FALSE);
 }
index 84a565f..0cb5f73 100644 (file)
@@ -171,9 +171,6 @@ static void do_cmd_wiz_hack_ben(void)
        (void)probing();
 }
 
-
-#ifdef MONSTER_HORDES
-
 /*!
  * @brief ウィザードモード用モンスターの群れ生成 / Summon a horde of monsters
  * @return なし
@@ -192,8 +189,6 @@ static void do_cmd_summon_horde(void)
        (void)alloc_horde(wy, wx);
 }
 
-#endif /* MONSTER_HORDES */
-
 /*!
  * @brief 32ビット変数のビット配列を並べて描画する / Output a long int in binary format.
  * @return なし
@@ -1984,11 +1979,9 @@ void do_cmd_debug(void)
                do_cmd_rerate(TRUE);
                break;
 
-#ifdef MONSTER_HORDES
        case 'H':
                do_cmd_summon_horde();
                break;
-#endif /* MONSTER_HORDES */
 
        /* Identify */
        case 'i':
index b94fbdf..d5d8cfe 100644 (file)
 
 /* Zangband options: */
 
-/* Allow hordes of 'similar' monsters */
-#define MONSTER_HORDES
-
 /*
  * OPTION: Make opening and closing things easy -- TNB
  */