summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.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/spells4.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/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index a9688cd558..c32d0c1578 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -228,7 +228,7 @@ static int _shatter_items(int x, int y, int pow, int garbage)
if (broke_stuff)
{
- if (!silenced(x, y) && !silenced(you.x_pos, you.y_pos))
+ if (!silenced(coord_def(x, y)) && !silenced(you.pos()))
mpr("You hear glass break.", MSGCH_SOUND);
return 1;
@@ -305,7 +305,7 @@ static int _shatter_walls(int x, int y, int pow, int garbage)
void cast_shatter(int pow)
{
int damage = 0;
- const bool silence = silenced(you.x_pos, you.y_pos);
+ const bool silence = silenced(you.pos());
if (silence)
mpr("The dungeon shakes!");