diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 09:53:41 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-23 09:53:41 +0000 |
commit | d40b5c49a223cb2bdad1e9a0df10631140b700a3 (patch) | |
tree | 1ce05afb305aafd41354bba5e853ea79796a819a /crawl-ref/source/player.cc | |
parent | 2487cbfe7787fdd3d8908ec9ad384fbebf30ac9a (diff) | |
download | crawl-ref-d40b5c49a223cb2bdad1e9a0df10631140b700a3.tar.gz crawl-ref-d40b5c49a223cb2bdad1e9a0df10631140b700a3.zip |
* 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
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 13 |
1 files changed, 13 insertions, 0 deletions
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 ); |