summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 07:44:37 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 07:44:37 +0000
commite38d19ed671795b6cb2e177a7f730272ce4f35b0 (patch)
tree954942a07be20fd5c7ad0cd0f0981880aea107b4 /crawl-ref/source/traps.cc
parenta002f27441e428dadaceb5fa28d260140bc1a66c (diff)
downloadcrawl-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/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index aa513293b1..306c898e04 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -110,7 +110,7 @@ void monster_caught_in_net(monsters *mon, bolt &pbolt)
}
const monsters* mons = static_cast<const monsters*>(mon);
- bool mon_flies = mons->flies() == FL_FLY;
+ bool mon_flies = mons->flight_mode() == FL_FLY;
if (mon_flies && (!mons_is_confused(mons) || one_chance_in(3)))
{
simple_monster_message(mon, " darts out from under the net!");
@@ -149,7 +149,7 @@ void player_caught_in_net()
return;
}
- if (you.flies() == FL_FLY && (!you.confused() || one_chance_in(3)))
+ if (you.flight_mode() == FL_FLY && (!you.confused() || one_chance_in(3)))
{
mpr("You dart out from under the net!");
return;
@@ -163,10 +163,10 @@ void player_caught_in_net()
// I guess levitation works differently, keeping both you
// and the net hovering above the floor
- if (you.flies() == FL_FLY)
+ if (you.flight_mode() == FL_FLY)
{
mpr("You fall like a stone!");
- fall_into_a_pool(you.x_pos, you.y_pos, false, grd[you.x_pos][you.y_pos]);
+ fall_into_a_pool(you.x_pos, you.y_pos, false, grd(you.pos()));
}
}
}