summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-util.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 23:33:40 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-16 23:33:40 +0000
commit48d27c2267743116fa1e9c9bf54e30716ca41e94 (patch)
treece5ac0f692cf9b7edb481ba8caa56418bcb3d75f /crawl-ref/source/mon-util.cc
parent9bce5089aa2b316c4eae23ee83dc48aea7d35289 (diff)
downloadcrawl-ref-48d27c2267743116fa1e9c9bf54e30716ca41e94.tar.gz
crawl-ref-48d27c2267743116fa1e9c9bf54e30716ca41e94.zip
Add still more cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5895 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r--crawl-ref/source/mon-util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index a6a4e79646..8b0c2db052 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -4085,8 +4085,8 @@ bool monsters::pickup_item(item_def &item, int near, bool force)
if (itype == OBJ_WEAPONS || itype == OBJ_MISSILES)
{
- // Fleeing monster only pick up emergency equipment.
- if (behaviour == BEH_FLEE)
+ // Fleeing monsters only pick up emergency equipment.
+ if (mons_is_fleeing(this))
return (false);
// While occupied, hostile monsters won't pick up items
@@ -5532,7 +5532,7 @@ void monsters::apply_enchantment(const mon_enchant &me)
case ENCH_HELD:
{
if (mons_is_stationary(this) || mons_cannot_act(this)
- || this->behaviour == BEH_SLEEP)
+ || mons_is_sleeping(this))
{
break;
}