summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/map_knowledge.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-03 15:38:21 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-03 15:38:21 +0100
commit2999d4af3666a04748cdb17681a08902a8803ad1 (patch)
tree1561099b527dbac16ad69ee2faf439512f903d64 /crawl-ref/source/map_knowledge.cc
parent2770e68c988821e4f74283c51d378b1671d5a13d (diff)
downloadcrawl-ref-2999d4af3666a04748cdb17681a08902a8803ad1.tar.gz
crawl-ref-2999d4af3666a04748cdb17681a08902a8803ad1.zip
Move set_terrain_changed() away from map_knowledge.cc
It hardly deals with remembered map.
Diffstat (limited to 'crawl-ref/source/map_knowledge.cc')
-rw-r--r--crawl-ref/source/map_knowledge.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/crawl-ref/source/map_knowledge.cc b/crawl-ref/source/map_knowledge.cc
index 6834461c87..fb332bb3a4 100644
--- a/crawl-ref/source/map_knowledge.cc
+++ b/crawl-ref/source/map_knowledge.cc
@@ -22,30 +22,6 @@
#endif
#include "view.h"
-// Used to mark dug out areas, unset when terrain is seen or mapped again.
-void set_terrain_changed(const coord_def p)
-{
- if (cell_is_solid(p))
- {
- int cl = env.cgrid(p);
- if (cl != EMPTY_CLOUD)
- delete_cloud(cl);
- }
-
- if (grd(p) == DNGN_SLIMY_WALL)
- env.level_state |= LSTATE_SLIMY_WALL;
-
- env.map_knowledge(p).flags |= MAP_CHANGED_FLAG;
-
- dungeon_events.fire_position_event(DET_FEAT_CHANGE, p);
-
- los_terrain_changed(p);
-
- for (orth_adjacent_iterator ai(p); ai; ++ai)
- if (actor *act = actor_at(*ai))
- act->check_clinging(false, feat_is_door(grd(p)));
-}
-
void set_terrain_mapped(const coord_def gc)
{
map_cell* cell = &env.map_knowledge(gc);