OSDN Git Service

モンスターに止めを刺した際に経験値が全く入らなくなるというバグを修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 18 Jul 2003 15:28:18 +0000 (15:28 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 18 Jul 2003 15:28:18 +0000 (15:28 +0000)
クエスト判定のバグ修正によるエンバグだった.

src/xtra2.c

index b201fe6..8b4119e 100644 (file)
@@ -2097,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;