summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-12-15 22:34:55 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-12-15 23:16:43 +0100
commitf81fc34f7f4f4cab5ba1cc01ba8c0e96498574a4 (patch)
tree9912318671f72f26db66d7eb483dc3b63a1b7856 /crawl-ref/source/view.cc
parent02256d318a68bc0fed1949633981fc14d2f7147c (diff)
downloadcrawl-ref-f81fc34f7f4f4cab5ba1cc01ba8c0e96498574a4.tar.gz
crawl-ref-f81fc34f7f4f4cab5ba1cc01ba8c0e96498574a4.zip
Remove Mislead.
It was a pure interface screw, and even worse, required a large amount of support code that's a maintenance burden, causing crashes we need to fix from time to time.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index bb5fb3997d..2fb7bf5402 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -290,12 +290,7 @@ void update_monsters_in_view()
map<monster_type, int> genera; // This is the plural for genus!
for (unsigned int i = 0; i < size; ++i)
{
- monster_type type;
- if (monsters[i]->props.exists("mislead_as") && you.misled())
- type = monsters[i]->get_mislead_type();
- else
- type = monsters[i]->type;
-
+ const monster_type type = monsters[i]->type;
types[type]++;
genera[mons_genus(type)]++;
}