From 94efa11e1613a3328378a2e1f9831f144490d434 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 16 Nov 2009 11:35:18 +0100 Subject: 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. --- crawl-ref/source/spells2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells2.cc') 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 -- cgit v1.2.3-54-g00ecf