OSDN Git Service

Fix a bug in monster info.
[hengband/hengband.git] / src / mspells1.c
index 1b2ab43..1ea98f1 100644 (file)
@@ -432,7 +432,7 @@ bool raise_possible(monster_type *m_ptr)
  * no equally friendly monster is
  * between the attacker and target.
  */
-bool clean_shot(int y1, int x1, int y2, int x2, bool friend)
+bool clean_shot(int y1, int x1, int y2, int x2, bool is_friend)
 {
        /* Must be the same as projectable() */
 
@@ -462,7 +462,7 @@ bool clean_shot(int y1, int x1, int y2, int x2, bool friend)
                if ((cave[y][x].m_idx > 0) && !((y == y2) && (x == x2)))
                {
                        monster_type *m_ptr = &m_list[cave[y][x].m_idx];
-                       if (friend == is_pet(m_ptr))
+                       if (is_friend == is_pet(m_ptr))
                        {
                                return (FALSE);
                        }
@@ -470,7 +470,7 @@ bool clean_shot(int y1, int x1, int y2, int x2, bool friend)
                /* Pets may not shoot through the character - TNB */
                if (player_bold(y, x))
                {
-                       if (friend) return (FALSE);
+                       if (is_friend) return (FALSE);
                }
        }