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/exclude.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/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index 228a8fcf67..6fbd185e11 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -8,7 +8,8 @@ #include "exclude.h" #include "coord.h" -#include "envmap.h" +#include "map_knowledge.h" +#include "fprop.h" #include "mon-util.h" #include "options.h" #include "overmap.h" @@ -96,8 +97,8 @@ struct opacity_excl : opacity_func return OPC_CLEAR; else if (!is_terrain_changed(p)) return _feat_opacity(env.grid(p)); - else if (env.map(p).object.cls == SH_FEATURE) - return _feat_opacity(env.map(p).object.feat); + else if (env.map_knowledge(p).object.cls == SH_FEATURE) + return _feat_opacity(env.map_knowledge(p).object.feat); else { // If you have seen monsters, items or clouds there, |