diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-21 11:02:24 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-21 11:20:30 +0100 |
commit | 2fb6a7e3d921cde7222b816bda2aaf161005371a (patch) | |
tree | af3bce319aa2b32f996a255bc59e800966d85a2f /crawl-ref/source/stuff.cc | |
parent | 201207baf25adbba05f334d80037d186281bccdf (diff) | |
download | crawl-ref-2fb6a7e3d921cde7222b816bda2aaf161005371a.tar.gz crawl-ref-2fb6a7e3d921cde7222b816bda2aaf161005371a.zip |
Move silenced(pos) to areas.cc.
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 3737cebf2d..f7f93c67a7 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -17,6 +17,7 @@ #include "mon-place.h" #include "state.h" #include "stuff.h" +#include "areas.h" #include "view.h" #include "viewchar.h" #include "viewgeom.h" @@ -808,12 +809,6 @@ int yesnoquit( const char* str, bool safe, int safeanswer, bool allow_all, } } -bool silenced(const coord_def& p) -{ - // FIXME: implement for monsters - return (you.duration[DUR_SILENCE] && distance(p, you.pos()) <= 6*6 + 1); -} - bool player_can_hear(const coord_def& p) { return (!silenced(p) && !silenced(you.pos())); |