summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.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/effects.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/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 2f23cb2309..45d30acaaf 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -971,7 +971,7 @@ void random_uselessness(int scroll_slot)
case 3:
if (you.species == SP_MUMMY)
mpr("Your bandages flutter.");
- else // if (player_can_smell())
+ else // if (you.can_smell())
mprf("You smell %s.", weird_smell().c_str());
break;
@@ -2791,7 +2791,7 @@ static void _hell_effects()
(temp_rand == 5) ? "\"Leave now, before it is too late!\"" :
(temp_rand == 6) ? "\"We have you now!\"" :
// plain messages
- (temp_rand == 7) ? (player_can_smell()) ? "You smell brimstone."
+ (temp_rand == 7) ? (you.can_smell()) ? "You smell brimstone."
: "Brimstone rains from above." :
(temp_rand == 8) ? "You feel lost and a long, long way from home..." :
(temp_rand == 9) ? "You shiver with fear." :
@@ -3557,7 +3557,7 @@ static void _rot_inventory_food(long time_delta)
// Races that can't smell don't care, and trolls are stupid and
// don't care.
- if (player_can_smell() && you.species != SP_TROLL)
+ if (you.can_smell() && you.species != SP_TROLL)
{
int temp_rand = 0; // Grr.
int level = player_mutation_level(MUT_SAPROVOROUS);