OSDN Git Service

モンスターが起きる際にモンスター光源のupdateの足りなかった部分の追加.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 10 Jul 2003 11:02:31 +0000 (11:02 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 10 Jul 2003 11:02:31 +0000 (11:02 +0000)
src/dungeon.c
src/melee2.c
src/mspells2.c
src/spells1.c
src/spells2.c
src/spells3.c
src/xtra2.c

index 7a3b614..7e4996b 100644 (file)
@@ -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
index f2ea4ee..afadfc4 100644 (file)
@@ -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 */
index a5b573f..de4b4fc 100644 (file)
@@ -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)
index 36901a5..d8764c3 100644 (file)
@@ -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;
 
index cd53ce9..42e8991 100644 (file)
@@ -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;
        }
index d297108..f2ec12c 100644 (file)
@@ -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)
                                {
index ece94ea..b201fe6 100644 (file)
@@ -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)
        {