summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 01:33:53 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-05 01:33:53 +0000
commit62f7040f14b39e67042be98f951575fbc819e84e (patch)
treed4fa0598a1bee1d34fff81e2c150de08c2256753 /crawl-ref/source/player.cc
parent19155f1f85058ef9d65d11e60c63cc69c36d4e8a (diff)
downloadcrawl-ref-62f7040f14b39e67042be98f951575fbc819e84e.tar.gz
crawl-ref-62f7040f14b39e67042be98f951575fbc819e84e.zip
Tiles!
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc21
1 files changed, 20 insertions, 1 deletions
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() );