summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:14:43 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 00:14:43 +0000
commitfffe9fb7f46a3c4f10837a40b1b72347ddd60a0b (patch)
tree4e7710008b707654e88ccc1dcf7390fcaa5e35dd /crawl-ref/source/abyss.cc
parentaaaab1c54cca4aecce189e984eb95b0f3232e980 (diff)
downloadcrawl-ref-fffe9fb7f46a3c4f10837a40b1b72347ddd60a0b.tar.gz
crawl-ref-fffe9fb7f46a3c4f10837a40b1b72347ddd60a0b.zip
Enable environmental effects (like lava generating black smoke) in the Abyss
as soon as the area is generated. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5618 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index cd8d1aa08f..57d311e45c 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -281,6 +281,8 @@ static void generate_area(int gx1, int gy1, int gx2, int gy2,
}
generate_random_blood_spatter_on_level();
+
+ setup_environment_effects();
}
static int abyss_exit_nearness()
@@ -491,6 +493,7 @@ void area_shift(void)
xom_check_nearness();
+ // Can't re-use ri since you.pos() has changed.
radius_iterator ri2(you.pos(), LOS_RADIUS);
for ( ; ri2; ++ri2 )
env.map(*ri2).property = fprops(you.pos() - *ri2 + los_delta);