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/externs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/externs.h') diff --git a/crawl-ref/source/externs.h b/crawl-ref/source/externs.h index e7ec27bf64..ac43447fe8 100644 --- a/crawl-ref/source/externs.h +++ b/crawl-ref/source/externs.h @@ -720,10 +720,12 @@ struct mon_display monster_type type; unsigned glyph; unsigned colour; + monster_type detected; // What a monster of type "type" is detected as. mon_display(monster_type m = MONS_NO_MONSTER, - unsigned gly = 0, - unsigned col = 0) : type(m), glyph(gly), colour(col) { } + unsigned gly = 0, unsigned col = 0, + monster_type d = MONS_NO_MONSTER) + : type(m), glyph(gly), colour(col), detected(d) { } }; #include "msvc.h" -- cgit v1.2.3-54-g00ecf