From 62f7040f14b39e67042be98f951575fbc819e84e Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 5 Jan 2008 01:33:53 +0000 Subject: Tiles! git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 6b0ba6ef97..f2f69df1dc 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -70,6 +70,7 @@ #include "travel.h" #include "tutorial.h" #include "view.h" +#include "tiles.h" #include "xom.h" std::string pronoun_you(description_level_type desc) @@ -256,6 +257,17 @@ bool move_player_to_grid( int x, int y, bool stepped, bool allow_shift, // move the player to location you.moveto(x, y); +#ifdef USE_TILE + // We could check for this above, but we need to do this post-move + // to force the merfolk tile to be out of water. + if ((!grid_is_water(new_grid) && grid_is_water(old_grid) || + grid_is_water(new_grid) && !grid_is_water(old_grid)) + && you.species == SP_MERFOLK) + { + TilePlayerRefresh(); + } +#endif + viewwindow( true, false ); // Other Effects: @@ -2626,6 +2638,10 @@ void forget_map(unsigned char chance_forgotten, bool force) } } } +#ifdef USE_TILE + GmapInit(false); + tile_clear_buf(); +#endif } // end forget_map() void gain_exp( unsigned int exp_gained, unsigned int* actual_gain, @@ -2979,6 +2995,9 @@ void level_change(bool skip_ability_increase) case SP_BASE_DRACONIAN: if (you.experience_level == 7) { +#ifdef USE_TILE + TilePlayerRefresh(); +#endif switch (you.species) { case SP_RED_DRACONIAN: @@ -3746,7 +3765,7 @@ void redraw_skill(const std::string &your_name, const std::string &class_name) title = trimmed_name + ", " + class_name; } - gotoxy(crawl_view.hudp.x, 1); + gotoxy(1, 1, GOTO_STAT); textcolor( LIGHTGREY ); cprintf( "%-41s", title.c_str() ); -- cgit v1.2.3-54-g00ecf