summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:32:37 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-23 20:32:37 +0000
commit6f00e679d1f90041599c50c3cc86ab4e499c9ba1 (patch)
tree2e1ceeed3d328f639166d0ca53dddbd6fba6cdcf /crawl-ref/source/spells3.cc
parent0b1e914465f3e3f1f4c73f63cf2346c3f2253861 (diff)
downloadcrawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.tar.gz
crawl-ref-6f00e679d1f90041599c50c3cc86ab4e499c9ba1.zip
More cleanups and fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 93adf4b69e..cc3a436b99 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -1630,7 +1630,7 @@ bool cast_sanctuary(const int power)
return (false);
// Yes, shamelessly stolen from NetHack...
- if (!silenced(you.x_pos, you.y_pos)) // How did you manage that?
+ if (!silenced(you.pos())) // How did you manage that?
mpr("You hear a choir sing!", MSGCH_SOUND);
else
mpr("You are suddenly bathed in radiance!");
@@ -1860,12 +1860,12 @@ bool project_noise(void)
success = true;
}
- if (!silenced( you.x_pos, you.y_pos ))
+ if (!silenced( you.pos() ))
{
if (success)
{
mprf(MSGCH_SOUND, "You hear a %svoice call your name.",
- (!see_grid( pos.x, pos.y ) ? "distant " : "") );
+ (!see_grid( pos ) ? "distant " : "") );
}
else
mprf(MSGCH_SOUND, "You hear a dull thud.");