diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-10 07:37:34 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-10 07:37:34 +0000 |
commit | eb104b3b66f061aacde6704d9a8067c242f90396 (patch) | |
tree | ab7a6a6847da1fd311f2a4fdf53330ecabf158ca | |
parent | 6d0a04543d0eb54737e33943e1d9f00ee4ca02f1 (diff) | |
download | crawl-ref-eb104b3b66f061aacde6704d9a8067c242f90396.tar.gz crawl-ref-eb104b3b66f061aacde6704d9a8067c242f90396.zip |
Fix bug 2803113: mutant jackals swiveling their eyestalks towards you if you
use the 0.3.4 glyph settings.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9938 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/view.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 9eeb3c1a86..c29c9c2ffe 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -1122,15 +1122,20 @@ void handle_monster_shouts(monsters* monster, bool force) msg = getShoutString(default_msg_key, suffix); else if (msg.empty()) { + // NOTE: Use the hardcoded glyph rather than that returned + // by mons_char(), since the result of mons_char() can be + // changed by user settings. + char mchar = get_monster_data(monster->type)->showchar; + // See if there's a shout for all monsters using the // same glyph/symbol std::string glyph_key = "'"; // Database keys are case-insensitve. - if (isupper(mons_char(monster->type))) + if (isupper(mchar)) glyph_key += "cap-"; - glyph_key += mons_char(monster->type); + glyph_key += mchar; glyph_key += "'"; msg = getShoutString(glyph_key, suffix); |