summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
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.");