summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.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/misc.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/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index f357884804..4cdd12829e 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2696,7 +2696,7 @@ static bool _mons_has_path_to_player(const monsters *mon)
{
// Don't consider sleeping monsters safe, in case the player would
// rather retreat and try another path for maximum stabbing chances.
- if (mons_is_sleeping(mon))
+ if (mon->asleep())
return (true);
// If the monster is awake and knows a path towards the player