summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:00:42 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-03 20:00:42 +0000
commitc07f2c46323c57f9d5699293e3e4458d5bbacde5 (patch)
tree4afb8218230bd780be1d925a84f4abe8542aef32 /crawl-ref/source/misc.cc
parent774610f0402dc15c10a1a39105e2427484364006 (diff)
downloadcrawl-ref-c07f2c46323c57f9d5699293e3e4458d5bbacde5.tar.gz
crawl-ref-c07f2c46323c57f9d5699293e3e4458d5bbacde5.zip
Some cleanup (replacing you.duration[DUR_CONF] with you.confused())
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7108 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 1e85627792..212636c8ca 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1487,7 +1487,7 @@ void up_stairs(dungeon_feature_type force_stair,
// the overloaded character makes an attempt... so we're doing this
// check before that one. -- bwr
if (!player_is_airborne()
- && you.duration[DUR_CONF]
+ && you.confused()
&& old_level_type == LEVEL_DUNGEON
&& stair_find >= DNGN_STONE_STAIRS_UP_I
&& stair_find <= DNGN_STONE_STAIRS_UP_III
@@ -1923,7 +1923,7 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
mprf("Welcome back to %s!", branches[you.where_are_you].longname);
if (!player_is_airborne()
- && you.duration[DUR_CONF]
+ && you.confused()
&& !grid_is_escape_hatch(stair_find)
&& force_stair != DNGN_ENTER_ABYSS
&& random2(100) > you.dex)