diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 14:23:03 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 14:46:22 +0100 |
commit | 28f6c800df6bc63658b9c79e803bf81ac282aa1d (patch) | |
tree | df593b87768f0324939f89ed6f4d7aea8c950de4 /crawl-ref/source/dbg-maps.cc | |
parent | a4eda3c37bb9ec6d9b847e827390a66062229b99 (diff) | |
download | crawl-ref-28f6c800df6bc63658b9c79e803bf81ac282aa1d.tar.gz crawl-ref-28f6c800df6bc63658b9c79e803bf81ac282aa1d.zip |
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.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r-- | crawl-ref/source/dbg-maps.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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); |