From 28f6c800df6bc63658b9c79e803bf81ac282aa1d Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 14:23:03 +0100 Subject: Split map knowledge and FPROPs. map_cell no longer has the field "properties", which has been replaced by the unsigned long array env.pgrid. env.map has been renamed to env.map_knowledge. It should really be moved into player. --- crawl-ref/source/tilepick.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/tilepick.cc') diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index f75357d994..5c26dcebc8 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -13,7 +13,8 @@ #include "coord.h" #include "coordit.h" #include "directn.h" -#include "envmap.h" +#include "map_knowledge.h" +#include "fprop.h" #include "externs.h" #include "options.h" #include "food.h" @@ -86,8 +87,8 @@ int tile_unseen_flag(const coord_def& gc) return TILE_FLAG_UNSEEN; else if (is_terrain_known(gc) && !is_terrain_seen(gc) - || is_envmap_detected_item(gc) - || is_envmap_detected_mons(gc)) + || is_map_knowledge_detected_item(gc) + || is_map_knowledge_detected_mons(gc)) { return TILE_FLAG_MM_UNSEEN; } -- cgit v1.2.3-54-g00ecf