summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index f54082c9cf..bdabea3756 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -29,7 +29,8 @@
#include "delay.h"
#include "dgnevent.h"
#include "effects.h"
-#include "envmap.h"
+#include "map_knowledge.h"
+#include "fprop.h"
#include "fight.h"
#include "food.h"
#include "godabil.h"
@@ -2449,9 +2450,9 @@ void forget_map(unsigned char chance_forgotten, bool force)
&& (force || x_chance_in_y(chance_forgotten, 100)
|| use_lab_check && (you.pos()-*ri).abs() > radius))
{
- env.map(*ri).clear();
+ env.map_knowledge(*ri).clear();
#ifdef USE_TILE
- set_envmap_obj(*ri, DNGN_UNSEEN);
+ set_map_knowledge_obj(*ri, DNGN_UNSEEN);
tiles.update_minimap(ri->x, ri->y);
env.tile_bk_fg(*ri) = 0;
env.tile_bk_bg(*ri) = tileidx_feature(DNGN_UNSEEN, ri->x, ri->y);