OSDN Git Service

[Fix] #40742 Resolved the issue that monsters didn't move
authorHourier <hourier@users.sourceforge.jp>
Mon, 5 Oct 2020 11:42:09 +0000 (20:42 +0900)
committerHourier <hourier@users.sourceforge.jp>
Mon, 5 Oct 2020 11:42:09 +0000 (20:42 +0900)
src/monster/monster-processor.c

index 512729e..e8c3717 100644 (file)
@@ -269,7 +269,10 @@ bool awake_monster(player_type *target_ptr, MONSTER_IDX m_idx)
 {
     monster_type *m_ptr = &target_ptr->current_floor_ptr->m_list[m_idx];
     monster_race *r_ptr = &r_info[m_ptr->r_idx];
-    if (!monster_csleep_remaining(m_ptr) || ((target_ptr->cursed & TRC_AGGRAVATE) == 0))
+    if (!monster_csleep_remaining(m_ptr))
+        return TRUE;
+
+    if ((target_ptr->cursed & TRC_AGGRAVATE) == 0)
         return FALSE;
 
     (void)set_monster_csleep(target_ptr, m_idx, 0);