OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13fd6ca
)
[Fix] #40742 Resolved the issue that monsters didn't move
author
Hourier
<hourier@users.sourceforge.jp>
Mon, 5 Oct 2020 11:42:09 +0000
(20:42 +0900)
committer
Hourier
<hourier@users.sourceforge.jp>
Mon, 5 Oct 2020 11:42:09 +0000
(20:42 +0900)
src/monster/monster-processor.c
patch
|
blob
|
history
diff --git
a/src/monster/monster-processor.c
b/src/monster/monster-processor.c
index
512729e
..
e8c3717
100644
(file)
--- a/
src/monster/monster-processor.c
+++ b/
src/monster/monster-processor.c
@@
-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);