summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 49d210f4ec..4ea7ac6b41 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -7038,7 +7038,7 @@ bool player::can_throw_large_rocks() const
return (player_genus(GENPC_OGRE) || species == SP_TROLL);
}
-bool player::can_sleep(bool holi_only) const
+bool player::can_hibernate(bool holi_only) const
{
// Undead, nonliving, and plants don't sleep.
const mon_holy_type holi = holiness();
@@ -7059,11 +7059,11 @@ bool player::can_sleep(bool holi_only) const
return (true);
}
-void player::put_to_sleep(int)
+void player::hibernate(int)
{
ASSERT(!crawl_state.arena);
- if (!can_sleep())
+ if (!can_hibernate())
{
mpr("You feel weary for a moment.");
return;