diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-27 07:44:37 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-27 07:44:37 +0000 |
commit | e38d19ed671795b6cb2e177a7f730272ce4f35b0 (patch) | |
tree | 954942a07be20fd5c7ad0cd0f0981880aea107b4 /crawl-ref/source/items.cc | |
parent | a002f27441e428dadaceb5fa28d260140bc1a66c (diff) | |
download | crawl-ref-e38d19ed671795b6cb2e177a7f730272ce4f35b0.tar.gz crawl-ref-e38d19ed671795b6cb2e177a7f730272ce4f35b0.zip |
[1821098] Fixed bat transform not conferring flight. Fixed player_is_levitating and renamed it to player_is_airborne to describe the function better.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2613 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index d910e5ecc3..c0dc3cf054 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1128,7 +1128,7 @@ bool pickup_single_item(int link, int qty) return (false); } - if (you.flies() == FL_LEVITATE) + if (you.flight_mode() == FL_LEVITATE) { mpr("You can't reach the floor from up here."); return (false); @@ -1170,7 +1170,7 @@ void pickup() return; } - if (you.flies() == FL_LEVITATE) + if (you.flight_mode() == FL_LEVITATE) { mpr("You can't reach the floor from up here."); return; @@ -2951,7 +2951,7 @@ bool can_autopickup() && you.duration[DUR_TRANSFORMATION] > 0) return (false); - if (you.flies() == FL_LEVITATE) + if (you.flight_mode() == FL_LEVITATE) return (false); if ( Options.safe_autopickup && !i_feel_safe() ) |