summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.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/directn.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/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index fc161caa83..dfa9dfd251 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -3118,7 +3118,7 @@ static std::string _get_monster_desc(const monsters *mon)
if (!mons_is_mimic(mon->type) && mons_behaviour_perceptible(mon))
{
- if (mons_is_sleeping(mon))
+ if (mon->asleep())
{
text += pronoun + " appears to be "
+ (mons_is_confused(mon, true) ? "sleepwalking"
@@ -3155,7 +3155,7 @@ static std::string _get_monster_desc(const monsters *mon)
// Give an indication of monsters being capable of seeing/sensing
// invisible creatures.
- if (mons_behaviour_perceptible(mon) && !mons_is_sleeping(mon)
+ if (mons_behaviour_perceptible(mon) && !mon->asleep()
&& !mons_is_confused(mon)
&& (mon->can_see_invisible() || mons_sense_invis(mon)))
{