summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-07 03:09:27 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-07 03:09:27 +0000
commitb6484c07a27d0856140792f33397930f9e6e7689 (patch)
treedb416d9f1ec48a1df9e9db47ab5fec8dbf2b8cf1 /crawl-ref/source/misc.cc
parent2a69f07bc9c2422df79641a79a80568fea28f2b9 (diff)
downloadcrawl-ref-b6484c07a27d0856140792f33397930f9e6e7689.tar.gz
crawl-ref-b6484c07a27d0856140792f33397930f9e6e7689.zip
Fix flight type handling so that spectral things can at least always
levitate again (since their class can), regardless of what actual type they are. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7169 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc17
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 609c107a39..c55e4573b2 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -1352,15 +1352,16 @@ static void climb_message(dungeon_feature_type stair, bool going_up,
mpr("A mysterious force pulls you upwards.");
else
{
- mprf("You %s downwards.", you.flight_mode() == FL_FLY? "fly" :
- (player_is_airborne()? "float" : "slide"));
+ mprf("You %s downwards.",
+ you.flight_mode() == FL_FLY ? "fly" :
+ (player_is_airborne() ? "float" : "slide"));
}
}
else
{
- mprf("You %s %swards.", you.flight_mode() == FL_FLY? "fly" :
- (player_is_airborne()? "float" : "climb"),
- going_up? "up": "down");
+ mprf("You %s %swards.", you.flight_mode() == FL_FLY ? "fly" :
+ (player_is_airborne() ? "float" : "climb"),
+ going_up ? "up" : "down");
}
}
@@ -1593,10 +1594,10 @@ void up_stairs(dungeon_feature_type force_stair,
const dungeon_feature_type stair_taken = stair_find;
- if (you.flight_mode() == FL_FLY)
- mpr("You fly upwards.");
- else if (you.flight_mode() == FL_LEVITATE)
+ if (you.flight_mode() == FL_LEVITATE)
mpr("You float upwards... And bob straight up to the ceiling!");
+ else if (you.flight_mode() == FL_FLY)
+ mpr("You fly upwards.");
else
climb_message(stair_find, true, old_level_type);