summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/map_knowledge.cc
diff options
context:
space:
mode:
authorRobert Burnham <burnhamrobertp@gmail.com>2011-10-25 15:38:46 -0500
committerRobert Burnham <burnhamrobertp@gmail.com>2011-10-25 15:38:46 -0500
commitce5cd1e9df7f220ee7d07b285b76473ec9fb928f (patch)
tree9f56ef300bc15746c2cde58dcbd09c2df1bdac95 /crawl-ref/source/map_knowledge.cc
parent71b738e8b44d6dad14c29bc898eff2ac700e9e1e (diff)
parent5efc2ebb172e0046e26e8b4a5114359f2e217628 (diff)
downloadcrawl-ref-ce5cd1e9df7f220ee7d07b285b76473ec9fb928f.tar.gz
crawl-ref-ce5cd1e9df7f220ee7d07b285b76473ec9fb928f.zip
Merge branch 'master' into unified_combat_control
Conflicts: crawl-ref/source/Makefile.obj crawl-ref/source/dbg-scan.cc crawl-ref/source/decks.cc crawl-ref/source/describe.cc crawl-ref/source/directn.cc crawl-ref/source/evoke.cc crawl-ref/source/fight.cc crawl-ref/source/fight.h crawl-ref/source/ghost.cc crawl-ref/source/ghost.h crawl-ref/source/item_use.cc crawl-ref/source/items.cc crawl-ref/source/map_knowledge.cc crawl-ref/source/melee_attack.h crawl-ref/source/mon-abil.cc crawl-ref/source/mon-act.cc crawl-ref/source/mon-stuff.cc crawl-ref/source/monster.cc crawl-ref/source/monster.h crawl-ref/source/player.cc crawl-ref/source/player.h crawl-ref/source/shopping.cc crawl-ref/source/spl-damage.cc crawl-ref/source/spl-summoning.cc crawl-ref/source/spl-transloc.cc crawl-ref/source/stairs.cc crawl-ref/source/stuff.cc crawl-ref/source/tags.cc crawl-ref/source/traps.cc crawl-ref/source/xom.cc
Diffstat (limited to 'crawl-ref/source/map_knowledge.cc')
-rw-r--r--crawl-ref/source/map_knowledge.cc27
1 files changed, 3 insertions, 24 deletions
diff --git a/crawl-ref/source/map_knowledge.cc b/crawl-ref/source/map_knowledge.cc
index 3ed2a7e509..8f0c1d46ea 100644
--- a/crawl-ref/source/map_knowledge.cc
+++ b/crawl-ref/source/map_knowledge.cc
@@ -14,7 +14,6 @@
#include "options.h"
#include "show.h"
#include "showsymb.h"
-#include "stuff.h"
#include "terrain.h"
#ifdef USE_TILE
#include "tilepick.h"
@@ -135,34 +134,14 @@ void set_terrain_seen(int x, int y)
map_cell* cell = &env.map_knowledge[x][y];
// First time we've seen a notable feature.
- // In unmappable areas, this doesn't work since
- // map knowledge gets wiped each turn.
- if (!(cell->flags & MAP_SEEN_FLAG) && player_in_mappable_area())
+ if (!(cell->flags & MAP_SEEN_FLAG))
{
_automap_from(x, y, _map_quality());
- const bool boring = !is_notable_terrain(feat)
- // A portal deeper into the Ziggurat is boring.
- || (feat == DNGN_ENTER_PORTAL_VAULT
- && you.level_type == LEVEL_PORTAL_VAULT)
- // Altars in the temple are boring.
- || (feat_is_altar(feat)
- && player_in_branch(BRANCH_ECUMENICAL_TEMPLE))
- // Only note the first entrance to the Abyss/Pan/Hell
- // which is found.
- || ((feat == DNGN_ENTER_ABYSS || feat == DNGN_ENTER_PANDEMONIUM
- || feat == DNGN_ENTER_HELL)
- && overview_knows_num_portals(feat) > 1)
- // There are at least three Zot entrances, and they're always
- // on D:27, so ignore them.
- || feat == DNGN_ENTER_ZOT;
-
- if (!boring)
+ if (!is_boring_terrain(feat))
{
coord_def pos(x, y);
- std::string desc =
- feature_description(pos, false, DESC_A);
-
+ std::string desc = feature_description(pos, false, DESC_A);
take_note(Note(NOTE_SEEN_FEAT, 0, 0, desc.c_str()));
}
}