OSDN Git Service

呪文の巻物の効果がスナイパーにも一部付加されていた不具合を修正。
[hengband/hengband.git] / src / xtra1.c
index 3b83f97..12ec3fa 100644 (file)
@@ -2098,7 +2098,7 @@ static void calc_spells(void)
 {
        int                     i, j, k, levels;
        int                     num_allowed;
-       int                     num_boukyaku = 0;
+       int         num_boukyaku = 0;
 
        magic_type              *s_ptr;
        int which;
@@ -2401,7 +2401,7 @@ static void calc_spells(void)
                        /* Count it */
                        k++;
                }
-               if (k>32) k = 32;
+               if (k > 32) k = 32;
                if ((p_ptr->new_spells > k) && ((mp_ptr->spell_book == TV_LIFE_BOOK) || (mp_ptr->spell_book == TV_HISSATSU_BOOK))) p_ptr->new_spells = k;
        }