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_one.c | |
parent | f7eb880a91dc00f0531fe6a6ec795fe56ae5fc3f (diff) |
Import fix from CVS: Properly mark quest monsters as such.
Diffstat (limited to 'src/q_one.c')
-rw-r--r-- | src/q_one.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/q_one.c b/src/q_one.c index a472979a..c11c5233 100644 --- a/src/q_one.c +++ b/src/q_one.c @@ -338,7 +338,11 @@ bool quest_one_gen_hook(char *fmt) try--; } - if (try) place_monster_one(y, x, test_monster_name("Sauron, the Sorcerer"), 0, FALSE, MSTATUS_ENEMY); + if (try) + { + int m_idx = place_monster_one(y, x, test_monster_name("Sauron, the Sorcerer"), 0, FALSE, MSTATUS_ENEMY); + if (m_idx) m_list[m_idx].mflag |= MFLAG_QUEST; + } return (FALSE); } |