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/dbg-maps.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/dbg-maps.cc') diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc index e8f1187da7..cf565712dd 100644 --- a/crawl-ref/source/dbg-maps.cc +++ b/crawl-ref/source/dbg-maps.cc @@ -12,7 +12,8 @@ #include "chardump.h" #include "coord.h" #include "dungeon.h" -#include "envmap.h" +#include "map_knowledge.h" +#include "fprop.h" #include "initfile.h" #include "maps.h" #include "message.h" @@ -59,7 +60,7 @@ static bool _mg_region_flood(const coord_def &c, int region, bool flag) if (flag) { - env.map(c).flags = 0; + env.map_knowledge(c).flags = 0; set_terrain_mapped(c.x, c.y); } @@ -188,7 +189,7 @@ static bool mg_do_build_level(int niters) coord_def c; for (c.y = 0; c.y < GYM; ++c.y) for (c.x = 0; c.x < GXM; ++c.x) - set_envmap_obj(c, grd(c)); + set_map_knowledge_obj(c, grd(c)); dump_map(fp); -- cgit v1.2.3-54-g00ecf