From: nothere Date: Thu, 10 Jul 2003 11:02:31 +0000 (+0000) Subject: モンスターが起きる際にモンスター光源のupdateの足りなかった部分の追加. X-Git-Tag: v2.1.2~1280 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=ce1ccc8b5060c6bd3dc6bead3541841eefa6f8a6 モンスターが起きる際にモンスター光源のupdateの足りなかった部分の追加. --- diff --git a/src/dungeon.c b/src/dungeon.c index 7a3b614c5..7e4996bbf 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -5584,6 +5584,8 @@ msg_print(" /* Recover fully */ m_ptr->csleep = 0; + if (r_info[m_ptr->r_idx].flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Acquire the monster name */ monster_desc(m_name, m_ptr, 0); #ifdef JP diff --git a/src/melee2.c b/src/melee2.c index f2ea4ee93..afadfc49b 100644 --- a/src/melee2.c +++ b/src/melee2.c @@ -213,6 +213,8 @@ void mon_take_hit_mon(int m_idx, int dam, bool *fear, cptr note, int who) /* Wake it up */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + if (p_ptr->riding && (m_idx == p_ptr->riding)) disturb(1, 0); if (m_ptr->invulner && randint0(PENETRATE_INVULNERABILITY)) @@ -1535,6 +1537,8 @@ static bool monst_attack_monst(int m_idx, int t_idx) /* Wake it up */ t_ptr->csleep = 0; + if (tr_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Describe the attack method */ switch (method) { @@ -2150,6 +2154,8 @@ msg_format("%s /* Wake it up */ t_ptr->csleep = 0; + if (tr_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Visible monsters */ if (see_m) { @@ -3264,7 +3270,9 @@ msg_print(" update_mon(c_ptr->m_idx, TRUE); /* Wake up the moved monster */ - m_list[c_ptr->m_idx].csleep = 0; + y_ptr->csleep = 0; + + if (r_info[y_ptr->r_idx].flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); } /* Hack -- Update the new location */ diff --git a/src/mspells2.c b/src/mspells2.c index a5b573f26..de4b4fc9e 100644 --- a/src/mspells2.c +++ b/src/mspells2.c @@ -4264,6 +4264,7 @@ bool monst_spell_monst(int m_idx) if (wake_up) { t_ptr->csleep = 0; + if (tr_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); } if (fear && see_t) diff --git a/src/spells1.c b/src/spells1.c index 36901a5ea..d8764c39d 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -3470,6 +3470,8 @@ note = " /* Wake up */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + if (m_ptr->maxhp < m_ptr->max_maxhp) { #ifdef JP @@ -3488,6 +3490,8 @@ msg_format("%^s /* Wake up */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + if (m_ptr->stunned) { #ifdef JP @@ -6055,6 +6059,8 @@ note = " /* Wake the monster up */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Hurt the monster */ m_ptr->hp -= dam; diff --git a/src/spells2.c b/src/spells2.c index cd53ce918..42e8991ad 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -4724,6 +4724,7 @@ void aggravate_monsters(int who) { /* Wake up */ m_ptr->csleep = 0; + if (r_info[m_ptr->r_idx].flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); sleep = TRUE; } if (!is_pet(m_ptr)) m_ptr->mflag2 |= MFLAG2_NOPET; @@ -4824,6 +4825,7 @@ msg_format("%^s if (m_ptr->csleep) { m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); if (m_ptr->ml && !p_ptr->blind) { #ifdef JP @@ -4953,6 +4955,7 @@ msg_format("%^s if (m_ptr->csleep) { m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); if (m_ptr->ml && !p_ptr->blind) { #ifdef JP @@ -5085,6 +5088,7 @@ msg_format("%^s if (m_ptr->csleep) { m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); if (m_ptr->ml && !p_ptr->blind) { #ifdef JP @@ -6171,6 +6175,8 @@ static void cave_temp_room_lite(void) /* Wake up! */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Notice the "waking up" */ if (m_ptr->ml) { @@ -6767,6 +6773,8 @@ msg_print(" if (m_ptr->ml && is_original_ap(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE; m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Failure */ return FALSE; } diff --git a/src/spells3.c b/src/spells3.c index d2971084b..f2ec12ca2 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -1522,6 +1522,8 @@ static bool vanish_dungeon(void) /* Reset sleep counter */ m_ptr->csleep = 0; + if (r_info[m_ptr->r_idx].flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Notice the "waking up" */ if (m_ptr->ml) { diff --git a/src/xtra2.c b/src/xtra2.c index ece94ea6b..b201fe64b 100644 --- a/src/xtra2.c +++ b/src/xtra2.c @@ -1742,6 +1742,8 @@ bool mon_take_hit(int m_idx, int dam, bool *fear, cptr note) /* Wake it up */ m_ptr->csleep = 0; + if (r_ptr->flags7 & RF7_HAS_LD_MASK) p_ptr->update |= (PU_MON_LITE); + /* Hack - Cancel any special player stealth magics. -LM- */ if (p_ptr->special_defense & NINJA_S_STEALTH) {