summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stairs.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2013-10-31 22:41:10 +0000
committerChris Campbell <chriscampbell89@gmail.com>2013-10-31 22:41:10 +0000
commit3d3b05d51296325931866ee491d1ce3f0cae1953 (patch)
treec41da5f10c70e878bc3ad952b4586ca3537e7c0e /crawl-ref/source/stairs.cc
parent633cbe5847b6e82dda1b9a57291e93cf42a88d53 (diff)
downloadcrawl-ref-3d3b05d51296325931866ee491d1ce3f0cae1953.tar.gz
crawl-ref-3d3b05d51296325931866ee491d1ce3f0cae1953.zip
Allow entering portal vaults and being banished on D:14
Diffstat (limited to 'crawl-ref/source/stairs.cc')
-rw-r--r--crawl-ref/source/stairs.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/stairs.cc b/crawl-ref/source/stairs.cc
index 17af17d27b..a0fde97683 100644
--- a/crawl-ref/source/stairs.cc
+++ b/crawl-ref/source/stairs.cc
@@ -714,7 +714,9 @@ void down_stairs(dungeon_feature_type force_stair)
_maybe_destroy_trap(you.pos());
}
- if (player_in_branch(BRANCH_MAIN_DUNGEON) && you.depth == RUNE_LOCK_DEPTH)
+ if (player_in_branch(BRANCH_MAIN_DUNGEON)
+ && you.depth == RUNE_LOCK_DEPTH
+ && feat_is_travelable_stair(stair_find))
{
bool has_rune = false;
for (int i = 0; i < NUM_RUNE_TYPES; i++)