From d40b5c49a223cb2bdad1e9a0df10631140b700a3 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 23 Jul 2009 09:53:41 +0000 Subject: * Fix Xom gifts not going Splash! in deep water. * Limit Xom tele rounds to a maximum of 12 (unlikely, but you know...) * Update player doll for Merfolk entering/leaving water. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10379 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index a1889aee42..a4ecdf499a 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -226,6 +226,9 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, } } +#ifdef USE_TILE + bool need_doll_update = false; +#endif // Only consider terrain if player is not levitating. if (!player_is_airborne()) { @@ -253,11 +256,17 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, mpr("Your legs become a tail as you dive into the water."); merfolk_start_swimming(); +#ifdef USE_TILE + need_doll_update = true; +#endif } else if (!grid_is_water(new_grid) && grid_is_water(old_grid)) { unmeld_one_equip(EQ_BOOTS); you.redraw_evasion = true; +#ifdef USE_TILE + need_doll_update = true; +#endif } } @@ -309,6 +318,10 @@ bool move_player_to_grid( const coord_def& p, bool stepped, bool allow_shift, // Move the player to new location. you.moveto(p); +#ifdef USE_TILE + if (need_doll_update) + init_player_doll(); +#endif viewwindow( true, false ); -- cgit v1.2.3-54-g00ecf