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/showsymb.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/showsymb.cc')
-rw-r--r-- | crawl-ref/source/showsymb.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/showsymb.cc b/crawl-ref/source/showsymb.cc index 332c283a37..0a069fad85 100644 --- a/crawl-ref/source/showsymb.cc +++ b/crawl-ref/source/showsymb.cc @@ -14,7 +14,8 @@ #include "colour.h" #include "env.h" -#include "envmap.h" +#include "map_knowledge.h" +#include "fprop.h" #include "halo.h" #include "mon-util.h" #include "monster.h" @@ -71,9 +72,9 @@ static unsigned short _feat_colour(const coord_def &where, } else if (feat >= DNGN_MINMOVE && is_sanctuary(where)) { - if (testbits(env.map(where).property, FPROP_SANCTUARY_1)) + if (testbits(env.pgrid(where), FPROP_SANCTUARY_1)) colour = YELLOW; - else if (testbits(env.map(where).property, FPROP_SANCTUARY_2)) + else if (testbits(env.pgrid(where), FPROP_SANCTUARY_2)) { if (!one_chance_in(4)) colour = WHITE; // 3/4 @@ -273,7 +274,7 @@ unsigned get_screen_glyph(const coord_def& p) unsigned ch; if (!object) - return get_envmap_char(p.x, p.y); + return get_map_knowledge_char(p.x, p.y); get_symbol(p, object, &ch, &colour); return (ch); |