summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.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/religion.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/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 36fdfa265c..057824e1b0 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -34,7 +34,8 @@
#include "describe.h"
#include "effects.h"
#include "enum.h"
-#include "envmap.h"
+#include "map_knowledge.h"
+#include "fprop.h"
#include "fight.h"
#include "files.h"
#include "food.h"
@@ -4287,7 +4288,7 @@ static bool _bless_weapon(god_type god, brand_type brand, int colour)
// Un-bloodify surrounding squares.
for (radius_iterator ri(you.pos(), 3, true, true); ri; ++ri)
if (is_bloodcovered(*ri))
- env.map(*ri).property &= ~(FPROP_BLOODY);
+ env.pgrid(*ri) &= ~(FPROP_BLOODY);
}
if (god == GOD_KIKUBAAQUDGHA)
@@ -4297,7 +4298,7 @@ static bool _bless_weapon(god_type god, brand_type brand, int colour)
// Bloodify surrounding squares (75% chance).
for (radius_iterator ri(you.pos(), 2, true, true); ri; ++ri)
if (!is_bloodcovered(*ri) && !one_chance_in(4))
- env.map(*ri).property |= FPROP_BLOODY;
+ env.pgrid(*ri) |= FPROP_BLOODY;
}
#ifndef USE_TILE