diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 19:31:49 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-02 19:31:49 +0000 |
commit | 8030e3981a5ff0333ae659cbd08763c09ffdede0 (patch) | |
tree | 2ad1edbe91ecdd44c84aa746102b380a5f3398d0 /crawl-ref/source/mon-util.cc | |
parent | 67e107b864b7c28ca740234c1752bb961039f8c9 (diff) | |
download | crawl-ref-8030e3981a5ff0333ae659cbd08763c09ffdede0.tar.gz crawl-ref-8030e3981a5ff0333ae659cbd08763c09ffdede0.zip |
Improve pacified monsters' routines for leaving the level again. Remove
death by submersion for now, since it's too specific to certain
monsters, and leaving the level long enough will make them disappear
anyway. Also, have monsters sometimes cycle through previously
unreachable areas again, in case things change on the level to make them
reachable.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6346 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 0840042d1a..d5f1a9ad71 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -4984,7 +4984,7 @@ bool monsters::add_ench(const mon_enchant &ench) // If the duration is not set, we must calculate it (depending on the // enchantment). if (!ench.duration) - added->set_duration(this, new_enchantment? NULL : &ench); + added->set_duration(this, new_enchantment ? NULL : &ench); if (new_enchantment) add_enchantment_effect(ench); |