From 540e73466ca8473cb46e6539a53b85d41c7a9382 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 6 Sep 2008 13:02:53 +0000 Subject: [2096874] Player was not being warned when entering shallow water. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6889 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 6b55e10e24..799b038380 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -114,7 +114,8 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, // assuming that entering the same square means coming from above (levitate) const bool from_above = (you.pos() == p); - const dungeon_feature_type old_grid = (from_above) ? DNGN_FLOOR : grd(p); + const dungeon_feature_type old_grid = + (from_above) ? DNGN_FLOOR : grd(you.pos()); const dungeon_feature_type new_grid = grd(p); // Really must be clear. @@ -4250,7 +4251,7 @@ bool wearing_amulet(jewellery_type amulet, bool calc_unid) { if ( extrinsic_amulet_effect(amulet) ) return (true); - + if (you.equip[EQ_AMULET] == -1) return (false); -- cgit v1.2.3-54-g00ecf