summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-14 11:56:37 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-14 12:05:16 +0300
commite7c8daa764478faeadb05f074819c64c6cf3c36e (patch)
treeec9b7f7b921ffec9f401c1bf50148d10e83ff0a4 /crawl-ref/source/player.cc
parent793840497955f01f4d2dbc9abde6fed7c4c83402 (diff)
downloadcrawl-ref-e7c8daa764478faeadb05f074819c64c6cf3c36e.tar.gz
crawl-ref-e7c8daa764478faeadb05f074819c64c6cf3c36e.zip
Move player_can_smell to player::can_smell.
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 1deed6be73..a56b9ffcb2 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -1246,11 +1246,6 @@ int player_spell_levels(void)
return (sl);
}
-bool player_can_smell()
-{
- return (you.species != SP_MUMMY);
-}
-
bool player_likes_chunks(bool permanently)
{
return (player_mutation_level(MUT_GOURMAND) > 0
@@ -7012,6 +7007,11 @@ bool player::can_throw_large_rocks() const
return (player_genus(GENPC_OGRE) || species == SP_TROLL);
}
+bool player::can_smell() const
+{
+ return (species != SP_MUMMY);
+}
+
void player::hibernate(int)
{
ASSERT(!crawl_state.arena);