X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fmspells1.c;h=24f3f4a85b88aefe24ddc8a354eb8410e670ab6c;hb=cf0661432289b1f1f5e40fc32a69057abfaa388c;hp=a57f033aff98d4c35f62b19fe6b4d5b48c3f7288;hpb=b2ae84263392581412e80ba351deb74a91e7fa4a;p=hengband%2Fhengband.git diff --git a/src/mspells1.c b/src/mspells1.c index a57f033af..24f3f4a85 100644 --- a/src/mspells1.c +++ b/src/mspells1.c @@ -346,7 +346,7 @@ static void remove_bad_spells(MONSTER_IDX m_idx, u32b *f4p, u32b *f5p, u32b *f6p f5 &= ~(RF5_DRAIN_MANA); } - /* XXX XXX XXX No spells left? */ + /* No spells left? */ /* if (!f4 && !f5 && !f6) ... */ (*f4p) = f4; @@ -1287,12 +1287,12 @@ static bool adjacent_grid_check(monster_type *m_ptr, POSITION *yp, POSITION *xp, * @details * Returns "TRUE" if a spell (or whatever) was (successfully) cast.\n *\n - * XXX XXX XXX This function could use some work, but remember to\n + * This function could use some work, but remember to\n * keep it as optimized as possible, while retaining generic code.\n *\n * Verify the various "blind-ness" checks in the code.\n *\n - * XXX XXX XXX Note that several effects should really not be "seen"\n + * Note that several effects should really not be "seen"\n * if the player is blind. See also "effects.c" for other "mistakes".\n *\n * Perhaps monsters should breathe at locations *near* the player,\n @@ -1392,7 +1392,7 @@ bool make_attack_spell(MONSTER_IDX m_idx) /* Sometimes forbid inate attacks (breaths) */ if (randint0(100) >= (r_ptr->freq_spell * 2)) no_inate = TRUE; - /* XXX XXX XXX Handle "track_target" option (?) */ + /* Handle "track_target" option (?) */ /* Extract the racial spell flags */ @@ -1467,7 +1467,7 @@ bool make_attack_spell(MONSTER_IDX m_idx) } else if ((f5 & RF5_BA_LITE) && (m_ptr->cdis <= MAX_RANGE)) { - int by = y, bx = x; + POSITION by = y, bx = x; get_project_point(m_ptr->fy, m_ptr->fx, &by, &bx, 0L); if ((distance(by, bx, y, x) <= 3) && los(by, bx, y, x) && one_in_(5)) { @@ -1703,7 +1703,7 @@ bool make_attack_spell(MONSTER_IDX m_idx) if (!spell_is_inate(thrown_spell) && (in_no_magic_dungeon || (MON_STUNNED(m_ptr) && one_in_(2)) || (randint0(100) < failrate))) { - disturb(1, 1); + disturb(TRUE, TRUE); msg_format(_("%^sは呪文を唱えようとしたが失敗した。", "%^s tries to cast a spell, but fails."), m_name); return (TRUE);