diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-06 07:33:09 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-06 07:33:09 +0000 |
commit | 20671b26530621da59573835940c625b49165cc1 (patch) | |
tree | bcb940bdd34e94a8c99a30d8659de81dc91b5407 /crawl-ref/source/view.cc | |
parent | 5da2dcea5a39399a4aba3765856e1810cf56f2b5 (diff) | |
download | crawl-ref-20671b26530621da59573835940c625b49165cc1.tar.gz crawl-ref-20671b26530621da59573835940c625b49165cc1.zip |
handle_monster_shouts() was using "seen" type shouts for monsters based
only on their visibility, ingoring if they were in LOS or not.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5495 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index cf62ba37e1..234b371c21 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -987,7 +987,7 @@ void handle_monster_shouts(monsters* monster, bool force) // Tries to find an entry for "name seen" or "name unseen", // and if no such entry exists then looks simply for "name". - if (player_monster_visible(monster)) + if (you.can_see(monster)) suffix = " seen"; else suffix = " unseen"; |