Partial fix for [2628480]: use you.can_see() instead of

player_monster_visible() in monsters::name() and do_mon_str_replacements(), so that noninvisible monsters which shout when out of sight are handled correctly. This isn't really the bug that's there, but it needed to be done sometime. Note that this is a change: if a monster is too far away to see and you want to get its name, you'll have to set force_vis. I hope this doesn't break anything. Also, make the mgrd-out-of-sync message trigger outside of DEBUG_DIAGNOSTICS.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9195 c06c8d41-db1a-0410-9941-cceddc491573

Created by  haranp  on February 24, 2009
BYRUSOCOJ4C3WE6JFEMYZ25ZMOXWPNGUMTBLNBWFVYPN2TW2TFPAC
Dependencies
In channels
main
Change contents