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/tilepick.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/tilepick.cc') 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) { -- cgit v1.2.3-54-g00ecf