From 6f00e679d1f90041599c50c3cc86ab4e499c9ba1 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 23 Jul 2008 20:32:37 +0000 Subject: More cleanups and fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6648 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells3.cc') 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."); -- cgit v1.2.3-54-g00ecf