summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.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/beam.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/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 3d3c6bc1d8..a5cdbe3cc3 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -1780,7 +1780,7 @@ void bolt::fire_wall_effect()
emit_message(MSGCH_PLAIN,
"The wax appears to soften slightly.");
}
- else if (player_can_smell())
+ else if (you.can_smell())
emit_message(MSGCH_PLAIN, "You smell warm wax.");
}
}
@@ -1790,7 +1790,7 @@ void bolt::fire_wall_effect()
grd(pos()) = DNGN_FLOOR;
if (you.see_cell(pos()))
emit_message(MSGCH_PLAIN, "The wax bubbles and burns!");
- else if (player_can_smell())
+ else if (you.can_smell())
emit_message(MSGCH_PLAIN, "You smell burning wax.");
place_cloud(CLOUD_FIRE, pos(), random2(10)+15, whose_kill(), killer());
obvious_effect = true;
@@ -1804,7 +1804,7 @@ void bolt::fire_wall_effect()
grd(pos()) = DNGN_FLOOR;
if (you.see_cell(pos()))
emit_message(MSGCH_PLAIN, "The tree burns like a torch!");
- else if (player_can_smell())
+ else if (you.can_smell())
emit_message(MSGCH_PLAIN, "You smell burning wood.");
if (whose_kill() == KC_YOU)
did_god_conduct(DID_KILL_PLANT, 1, effect_known);