diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-06 15:10:29 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-06 15:12:26 -0600 |
commit | f9b61b5115bb93a1381cfc3032820489875624c5 (patch) | |
tree | 637b6b52c190b1feb0e17193784056324213cf08 /crawl-ref/source/mon-info.cc | |
parent | b192fdbbbeb85e80aae71e169417511b52e5ab19 (diff) | |
download | crawl-ref-f9b61b5115bb93a1381cfc3032820489875624c5.tar.gz crawl-ref-f9b61b5115bb93a1381cfc3032820489875624c5.zip |
Consolidate player/monster sleep checks.
Diffstat (limited to 'crawl-ref/source/mon-info.cc')
-rw-r--r-- | crawl-ref/source/mon-info.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc index 141584a003..db0a44240c 100644 --- a/crawl-ref/source/mon-info.cc +++ b/crawl-ref/source/mon-info.cc @@ -166,12 +166,8 @@ static std::string _verbose_info(const monsters* m) return (" (fleeing)"); if (m->asleep()) { - if (m->holiness() == MH_UNDEAD - || m->holiness() == MH_NONLIVING - || m->holiness() == MH_PLANT) - { + if (!m->can_sleep(true)) return (" (dormant)"); - } else return (" (sleeping)"); } |