summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 14:23:03 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 14:46:22 +0100
commit28f6c800df6bc63658b9c79e803bf81ac282aa1d (patch)
treedf593b87768f0324939f89ed6f4d7aea8c950de4 /crawl-ref/source/abyss.cc
parenta4eda3c37bb9ec6d9b847e827390a66062229b99 (diff)
downloadcrawl-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/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 398c5b8ff5..126ba384ab 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -180,7 +180,7 @@ static void _generate_area(const coord_def& topleft,
dungeon_feature_type replaced[5];
// Nuke map.
- env.map.init(map_cell());
+ env.map_knowledge.init(map_cell());
// Generate level composition vector.
for (int i = 0; i < 5; i++)
@@ -427,7 +427,7 @@ void area_shift(void)
for (radius_iterator ri(you.pos(), LOS_RADIUS); ri; ++ri)
{
- fprops(you.pos() - *ri + los_delta) = env.map(*ri).property;
+ fprops(you.pos() - *ri + los_delta) = env.pgrid(*ri);
if (env.sanctuary_pos == *ri && env.sanctuary_time > 0)
{
sanct_pos = *ri - you.pos();
@@ -526,7 +526,7 @@ void area_shift(void)
_xom_check_nearness();
for (radius_iterator ri(you.pos(), LOS_RADIUS); ri; ++ri)
- env.map(*ri).property = fprops(you.pos() - *ri + los_delta);
+ env.pgrid(*ri) = fprops(you.pos() - *ri + los_delta);
if (sanct_shifted)
env.sanctuary_pos = sanct_pos + you.pos();