OSDN Git Service

[Refactor] #37353 誤った #define 適用を修正。 / Fix wrong #define applying. (A_MAX)
[hengband/hengband.git] / src / mane.c
index ce711ed..6cf6a4e 100644 (file)
@@ -787,7 +787,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("モンスターを召喚した!", "You summon monsters!"));
-               for (k = 0;k < A_MAX; k++)
+               for (k = 0; k < 6; k++)
                        summon_specific(-1, target_row, target_col, plev, 0, (mode | u_mode), '\0');
                break;
        }
@@ -796,7 +796,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("アリを召喚した。", "You summon ants."));
-               for (k = 0;k < A_MAX; k++)
+               for (k = 0; k < 6; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_ANT, mode, '\0');
                break;
        }
@@ -805,7 +805,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("蜘蛛を召喚した。", "You summon spiders."));
-               for (k = 0;k < A_MAX; k++)
+               for (k = 0; k < 6; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_SPIDER, mode, '\0');
                break;
        }
@@ -814,7 +814,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("ハウンドを召喚した。", "You summon hounds."));
-               for (k = 0;k < 4; k++)
+               for (k = 0; k < 4; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_HOUND, mode, '\0');
                break;
        }
@@ -823,7 +823,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("ヒドラを召喚した。", "You summon hydras."));
-               for (k = 0;k < 4; k++)
+               for (k = 0; k < 4; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_HYDRA, mode, '\0');
                break;
        }
@@ -832,7 +832,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("天使を召喚した!", "You summon angel!"));
-               for (k = 0;k < 1; k++)
+               for (k = 0; k < 1; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_ANGEL, mode, '\0');
                break;
        }
@@ -841,7 +841,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("混沌の宮廷から悪魔を召喚した!", "You summon a demon from the Courts of Chaos!"));
-               for (k = 0;k < 1; k++)
+               for (k = 0; k < 1; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_DEMON, (mode | u_mode), '\0');
                break;
        }
@@ -850,7 +850,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("アンデッドの強敵を召喚した!", "You summon an undead adversary!"));
-               for (k = 0;k < 1; k++)
+               for (k = 0; k < 1; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_UNDEAD, (mode | u_mode), '\0');
                break;
        }
@@ -859,7 +859,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("ドラゴンを召喚した!", "You summon dragon!"));
-               for (k = 0;k < 1; k++)
+               for (k = 0; k < 1; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_DRAGON, (mode | u_mode), '\0');
                break;
        }
@@ -868,7 +868,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("強力なアンデッドを召喚した!", "You summon greater undead!"));
-               for (k = 0;k < A_MAX; k++)
+               for (k = 0; k < 6; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_HI_UNDEAD, (mode | u_mode), '\0');
                break;
        }
@@ -877,7 +877,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("古代ドラゴンを召喚した!", "You summon ancient dragons!"));
-               for (k = 0;k < 4; k++)
+               for (k = 0; k < 4; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_HI_DRAGON, (mode | u_mode), '\0');
                break;
        }
@@ -886,7 +886,7 @@ static bool use_mane(int spell)
                int k;
                if (!target_set(TARGET_KILL)) return FALSE;
                msg_print(_("アンバーの王族を召喚した!", "You summon Lords of Amber!"));
-               for (k = 0;k < 4; k++)
+               for (k = 0; k < 4; k++)
                        summon_specific(-1, target_row, target_col, plev, SUMMON_AMBERITES, (mode | PM_ALLOW_UNIQUE), '\0');
                break;
        }