summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 00:05:03 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 00:05:03 +0000
commit54d9768ff184b52faba9d466177b2563faebfe1d (patch)
treea6a1925fe29787fcc46da7c62043e08223cccbf8 /crawl-ref/source/misc.cc
parent51bb503297931e5a8c35ea76e92c4feac67d6e08 (diff)
downloadcrawl-ref-54d9768ff184b52faba9d466177b2563faebfe1d.tar.gz
crawl-ref-54d9768ff184b52faba9d466177b2563faebfe1d.zip
Don't "trip and fall back down the stairs" when leaving Pandemonium, the Abyss
or a portal level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6271 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 52d1d186a6..a4865d6ca8 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1504,6 +1504,7 @@ void up_stairs(dungeon_feature_type force_stair,
// check before that one. -- bwr
if (!player_is_airborne()
&& you.duration[DUR_CONF]
+ && old_level_type == LEVEL_DUNGEON
&& stair_find >= DNGN_STONE_STAIRS_UP_I
&& stair_find <= DNGN_STONE_STAIRS_UP_III
&& random2(100) > you.dex)