OSDN Git Service

#37287 #37353 (2.2.0.89) 型の置換を継続中。 / Ongoing type replacement.
[hengband/hengband.git] / src / mspells2.c
index 34a4bf3..bdd6f8a 100644 (file)
@@ -88,8 +88,8 @@ static bool breath_direct(int y1, int x1, int y2, int x2, int rad, int typ, bool
 
        int grids = 0;
        POSITION gx[1024], gy[1024];
-       byte gm[32];
-       int gm_rad = rad;
+       POSITION gm[32];
+       POSITION gm_rad = rad;
 
        bool hit2 = FALSE;
        bool hityou = FALSE;
@@ -222,7 +222,7 @@ void get_project_point(int sy, int sx, int *ty, int *tx, int flg)
  * @param t_idx 目標のモンスターID
  * @return 魔力消去を使うべきならばTRUEを変えす。
  */
-static bool dispel_check_monster(IDX m_idx, IDX t_idx)
+static bool dispel_check_monster(MONSTER_IDX m_idx, IDX t_idx)
 {
        monster_type *t_ptr = &m_list[t_idx];
 
@@ -253,11 +253,11 @@ static bool dispel_check_monster(IDX m_idx, IDX t_idx)
  * @details
  * The player is only disturbed if able to be affected by the spell.
  */
-bool monst_spell_monst(IDX m_idx)
+bool monst_spell_monst(MONSTER_IDX m_idx)
 {
-       int y = 0, x = 0;
+       POSITION y = 0, x = 0;
        int i, k;
-       IDX t_idx = 0;
+       MONSTER_IDX t_idx = 0;
        int thrown_spell;
        int dam = 0;
        int start;
@@ -354,7 +354,7 @@ bool monst_spell_monst(IDX m_idx)
                /* Scan thru all monsters */
                for (i = start; ((i < start + m_max) && (i > start - m_max)); i += plus)
                {
-                       int dummy = (i % m_max);
+                       MONSTER_IDX dummy = (i % m_max);
                        if (!dummy) continue;
 
                        t_idx = dummy;