OSDN Git Service

grid.c 1.17 の変更に従い、隠しドア等を表示するとき、
[hengbandforosx/hengbandosx.git] / src / xtra2.c
index ece94ea..8b4119e 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)
        {
@@ -2095,9 +2097,9 @@ msg_format("%s
 
                /* Prevent bug of chaos patron's reward */
                if (r_ptr->flags7 & RF7_KILL_EXP)
-                       get_exp_from_mon((long)m_ptr->max_maxhp*2, &exp_mon);
+                       get_exp_from_mon((long)exp_mon.max_maxhp*2, &exp_mon);
                else
-                       get_exp_from_mon(((long)m_ptr->max_maxhp+1L) * 9L / 10L, &exp_mon);
+                       get_exp_from_mon(((long)exp_mon.max_maxhp+1L) * 9L / 10L, &exp_mon);
 
                /* Not afraid */
                (*fear) = FALSE;