diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 11:35:18 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-16 12:19:59 +0100 |
commit | 94efa11e1613a3328378a2e1f9831f144490d434 (patch) | |
tree | 251c872158ffa4be53f8c0a0b52007b033d7820b /crawl-ref/source/tilepick.cc | |
parent | 975e3a88520ca52bd5f8fcfb8ecda505d823a561 (diff) | |
download | crawl-ref-94efa11e1613a3328378a2e1f9831f144490d434.tar.gz crawl-ref-94efa11e1613a3328378a2e1f9831f144490d434.zip |
Fix information leakage in detect creatures.
Also fix tiles giving more information than console version.
There's now mons_detected_base, which assigns a base monster
type to every monster type based on the default displayed
glyph. It just takes the first entry for a given glyph
based on the mon-data.h order, so this may need tweaking
in some cases.
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r-- | crawl-ref/source/tilepick.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index 4454eaf970..0e9de2c776 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -123,7 +123,7 @@ int tileidx_monster_base(const monsters *mon, bool detected) // Show only base class for detected monsters. if (detected) - type = mons_genus(type); + type = mons_detected_base(mon->type); switch (type) { |