* 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() */
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);
}
/* Pets may not shoot through the character - TNB */
if (player_bold(y, x))
{
- if (friend) return (FALSE);
+ if (is_friend) return (FALSE);
}
}