summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.cc
diff options
context:
space:
mode:
authorShayne Halvorson <N78291@gmail.com>2014-02-07 13:34:12 -0600
committerChris Campbell <chriscampbell89@gmail.com>2014-02-10 21:02:51 +0000
commit3fcccda608e7ba86139bccc754948cd42c478f21 (patch)
tree5ac802c6933a6006d04dcc6ccc97175cd194fc61 /crawl-ref/source/terrain.cc
parenta8f07b1d7ffb24825637ea889198faf24749f241 (diff)
downloadcrawl-ref-3fcccda608e7ba86139bccc754948cd42c478f21.tar.gz
crawl-ref-3fcccda608e7ba86139bccc754948cd42c478f21.zip
New spell: Summon Forest (L5 Summ/Tloc)
It temporarily changes nearby terrain to trees and water and summons a dryad.
Diffstat (limited to 'crawl-ref/source/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index b662b9f468..bd54df794a 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -1963,7 +1963,9 @@ static bool _revert_terrain_to(coord_def pos, dungeon_feature_type newfeat)
// Don't revert sealed doors to normal doors if we're trying to
// remove the door altogether
- if (marker->change_type == TERRAIN_CHANGE_DOOR_SEAL
+ // Same for destroyed trees
+ if ((marker->change_type == TERRAIN_CHANGE_DOOR_SEAL
+ || marker->change_type == TERRAIN_CHANGE_FORESTED)
&& newfeat == DNGN_FLOOR)
{
env.markers.remove(marker);