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_nazgul.c | |
parent | f7eb880a91dc00f0531fe6a6ec795fe56ae5fc3f (diff) |
Import fix from CVS: Properly mark quest monsters as such.
Diffstat (limited to 'src/q_nazgul.c')
-rw-r--r-- | src/q_nazgul.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/q_nazgul.c b/src/q_nazgul.c index 3114be13..ef188b16 100644 --- a/src/q_nazgul.c +++ b/src/q_nazgul.c @@ -3,7 +3,7 @@ bool quest_nazgul_gen_hook(char *fmt) { - int x = 1, y = 1, try = 10000; + int m_idx, x = 1, y = 1, try = 10000; s32b small; small = get_next_arg(fmt); @@ -27,7 +27,8 @@ bool quest_nazgul_gen_hook(char *fmt) /* Place the nazgul */ m_allow_special[test_monster_name("Uvatha the Horseman")] = TRUE; - place_monster_one(y, x, test_monster_name("Uvatha the Horseman"), 0, FALSE, MSTATUS_ENEMY); + m_idx = place_monster_one(y, x, test_monster_name("Uvatha the Horseman"), 0, FALSE, MSTATUS_ENEMY); + if (m_idx) m_list[m_idx].mflag |= MFLAG_QUEST; m_allow_special[test_monster_name("Uvatha the Horseman")] = FALSE; return FALSE; |