summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-19 17:37:17 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-19 17:37:17 +0000
commit3ecc52d48d75321c18bd0969f461f26e253c6537 (patch)
tree31453ceacad21dce823c0ea4c024b080accc8a77
parentbf1ccbad46e68e9bebe41916a669acc1699ccf48 (diff)
downloadcrawl-ref-3ecc52d48d75321c18bd0969f461f26e253c6537.tar.gz
crawl-ref-3ecc52d48d75321c18bd0969f461f26e253c6537.zip
Killed extra space in levitation message.
Fixed old bug where a kenku that's levitating when levelling up to XL 15 is stuck with permalevitation instead of permafly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1483 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/it_use2.cc2
-rw-r--r--crawl-ref/source/player.cc7
2 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc
index ba6153e452..880eb276cc 100644
--- a/crawl-ref/source/it_use2.cc
+++ b/crawl-ref/source/it_use2.cc
@@ -126,7 +126,7 @@ bool potion_effect( char pot_eff, int pow )
case POT_LEVITATION:
mprf("You feel %s buoyant.",
- (!player_is_levitating()) ? " very" : " more");
+ (!player_is_levitating()) ? "very" : "more");
if (!player_is_levitating())
mpr("You gently float upwards from the floor.");
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 7a96a7921f..b6eefa1aee 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -2752,7 +2752,14 @@ void level_change(void)
if (you.experience_level == 5)
mpr("You have gained the ability to fly.", MSGCH_INTRINSIC_GAIN);
else if (you.experience_level == 15)
+ {
mpr("You can now fly continuously.", MSGCH_INTRINSIC_GAIN);
+ if (you.levitation)
+ {
+ you.levitation = 100;
+ you.duration[DUR_CONTROLLED_FLIGHT] = 100;
+ }
+ }
break;
case SP_MERFOLK: