summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-09 13:20:41 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-09 13:23:03 +0100
commit4f01dfc503609b036590d39e787b2d197d3e9572 (patch)
tree1ca07270866a206465c9d7064c3459853d0b7dcb /crawl-ref/source/abyss.cc
parent9e3a7cbb366465722e9e766569099b2273e0e43d (diff)
downloadcrawl-ref-4f01dfc503609b036590d39e787b2d197d3e9572.tar.gz
crawl-ref-4f01dfc503609b036590d39e787b2d197d3e9572.zip
Ensure the player doesn't end up in a wall on abyss shifts.
Somehow, _write_abyssal_features() did that in one case. Not sure why, as the terrain is supposed to come from around the player.
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 0875287949..5e40f4a568 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -1097,6 +1097,8 @@ static dungeon_feature_type _veto_dangerous_terrain(dungeon_feature_type feat)
return DNGN_SHALLOW_WATER;
if (feat == DNGN_LAVA)
return DNGN_FLOOR;
+ if (feat_is_solid(feat))
+ return DNGN_FLOOR;
return feat;
}