diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-13 10:02:21 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-13 10:02:21 +0000 |
commit | 52b146bac6c9f15d8b90331576738204651d6c8c (patch) | |
tree | fd443b2458c9309d39ff82847632ccd1eba0c996 /crawl-ref/source/misc.cc | |
parent | ac1b7c7427e4786ff62d6be16277c2d7e2a5b0c8 (diff) | |
download | crawl-ref-52b146bac6c9f15d8b90331576738204651d6c8c.tar.gz crawl-ref-52b146bac6c9f15d8b90331576738204651d6c8c.zip |
Permanent levitation no longer confers permanent flight.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3053 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index bc6b0a1b9e..81c29b3a7c 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -675,13 +675,10 @@ void up_stairs(dungeon_feature_type force_stair, const dungeon_feature_type stair_taken = stair_find; - if (player_is_airborne()) - { - if (you.duration[DUR_CONTROLLED_FLIGHT]) - mpr("You fly upwards."); - else - mpr("You float upwards... And bob straight up to the ceiling!"); - } + if (you.flight_mode() == FL_FLY) + mpr("You fly upwards."); + else if (you.flight_mode() == FL_LEVITATE) + mpr("You float upwards... And bob straight up to the ceiling!"); else climb_message(stair_find, true, old_level_type); |