diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-05 19:28:56 +0300 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-05 17:31:29 +0100 |
commit | 48f785a271089f4f85bdfb5624b56b433e0ebd13 (patch) | |
tree | 3eaeea9d8cfe68e9545478f6f50d4cdb3a5aaab7 /crawl-ref/source/it_use2.cc | |
parent | 0dc3e02bc8bc01336bd9421257635b49d646502d (diff) | |
download | crawl-ref-48f785a271089f4f85bdfb5624b56b433e0ebd13.tar.gz crawl-ref-48f785a271089f4f85bdfb5624b56b433e0ebd13.zip |
Replace uses of player_is_airborne with you.airborne.
Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
Diffstat (limited to 'crawl-ref/source/it_use2.cc')
-rw-r--r-- | crawl-ref/source/it_use2.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use2.cc b/crawl-ref/source/it_use2.cc index bc50fa4f89..96350a9bc6 100644 --- a/crawl-ref/source/it_use2.cc +++ b/crawl-ref/source/it_use2.cc @@ -224,10 +224,10 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) case POT_LEVITATION: mprf(MSGCH_DURATION, - "You feel %s buoyant.", !player_is_airborne() ? "very" + "You feel %s buoyant.", !you.airborne() ? "very" : "more"); - if (!player_is_airborne()) + if (!you.airborne()) mpr("You gently float upwards from the floor."); // Amulet of Controlled Flight can auto-ID. @@ -246,7 +246,7 @@ bool potion_effect(potion_type pot_eff, int pow, bool drank_it, bool was_known) } // Merfolk boots unmeld if levitation takes us out of water. - if (!player_is_airborne() && you.species == SP_MERFOLK + if (!you.airborne() && you.species == SP_MERFOLK && feat_is_water(grd(you.pos()))) { unmeld_one_equip(EQ_BOOTS); |