diff options
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index e7b54d6254..c9f00ece2d 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -1237,9 +1237,9 @@ bool silenced(const coord_def& p) return (you.duration[DUR_SILENCE] > 0 && distance(p, you.pos()) <= 6*6); } -bool player_can_hear(int x, int y) +bool player_can_hear(const coord_def& p) { - return (!silenced(coord_def(x, y)) && !silenced(you.pos())); + return (!silenced(p) && !silenced(you.pos())); } // Returns true if inside the area the player can move and dig (ie exclusive). |