summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/externs.h
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/externs.h
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/externs.h')
-rw-r--r--crawl-ref/source/externs.h6
1 files changed, 4 insertions, 2 deletions
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"