summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-16 11:35:18 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-16 12:19:59 +0100
commit94efa11e1613a3328378a2e1f9831f144490d434 (patch)
tree251c872158ffa4be53f8c0a0b52007b033d7820b /crawl-ref/source/spells2.cc
parent975e3a88520ca52bd5f8fcfb8ecda505d823a561 (diff)
downloadcrawl-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/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 21e67164f8..fca185bf16 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -170,7 +170,7 @@ static bool _mark_detected_creature(coord_def where, const monsters *mon,
where = place;
}
- set_map_knowledge_obj(where, show_type(mon));
+ set_map_knowledge_obj(where, show_type(mons_detected_base(mon->type)));
set_map_knowledge_detected_mons(where);
#ifdef USE_TILE