summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorabrahamwl <abrahamwl@gmail.com>2009-10-30 18:06:32 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-30 21:37:19 -0700
commitef456d5cbf1a159010d28f0ab5bd9ef3e35143c7 (patch)
tree2c4da965a411cf78b4c5a58fdd7546e435fd3f2b /crawl-ref/source/spells1.cc
parent9e0fc66a0d3b9bdf502d0726828ba1ed89302816 (diff)
downloadcrawl-ref-ef456d5cbf1a159010d28f0ab5bd9ef3e35143c7.tar.gz
crawl-ref-ef456d5cbf1a159010d28f0ab5bd9ef3e35143c7.zip
Combine mons_is_sleeping(monsters *m) into monsters::asleep()
...and replace all references to mons_is_sleeping with asleep.
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 668ff38dcc..40fdc8bcf5 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -684,7 +684,7 @@ static bool _can_pacify_monster(const monsters *mon, const int healed)
if (mons_is_stationary(mon)) // not able to leave the level
return (false);
- if (mons_is_sleeping(mon)) // not aware of what is happening
+ if (mon->asleep()) // not aware of what is happening
return (false);
const int factor = (mons_intel(mon) <= I_ANIMAL) ? 3 : // animals