diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 22:42:05 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-08 23:46:24 +0100 |
commit | 39d29b8f4fd6ad249246aa1a718493dfa2ec0bdf (patch) | |
tree | b79c14ac991a579fa6654928f4feb007dc97b99e /src/q_thrain.c | |
parent | f7eb880a91dc00f0531fe6a6ec795fe56ae5fc3f (diff) |
Import fix from CVS: Properly mark quest monsters as such.
Diffstat (limited to 'src/q_thrain.c')
-rw-r--r-- | src/q_thrain.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/q_thrain.c b/src/q_thrain.c index 5f5095d1..e7e3161a 100644 --- a/src/q_thrain.c +++ b/src/q_thrain.c @@ -157,16 +157,9 @@ bool quest_thrain_gen_hook(char *fmt) m_allow_special[test_monster_name("Thrain, the King Under the Mountain")] = TRUE; i = place_monster_one(y, x, test_monster_name("Thrain, the King Under the Mountain"), 0, FALSE, MSTATUS_NEUTRAL); + if (i) m_list[i].mflag |= MFLAG_QUEST; m_allow_special[test_monster_name("Thrain, the King Under the Mountain")] = FALSE; } - if (cave[y][x].m_idx) - { - m_ptr = &m_list[cave[y][x].m_idx]; - if ((m_ptr->r_idx == test_monster_name("Dwar, Dog Lord of Waw")) || (m_ptr->r_idx == test_monster_name("Hoarmurath of Dir"))) - { - m_ptr->mflag |= MFLAG_QUEST; - } - } } /* Don't try another one for this generation */ |