summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/misc.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/misc.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/misc.cc')
-rw-r--r--crawl-ref/source/misc.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index 4ae926d439..9d55eeda9d 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -71,6 +71,7 @@
#include "stash.h"
#include "state.h"
#include "stuff.h"
+#include "tiles.h"
#include "terrain.h"
#include "transfor.h"
#include "traps.h"
@@ -1193,6 +1194,16 @@ void down_stairs( int old_level, dungeon_feature_type force_stair,
&& !level_type_exits_down(old_level_type))
you.your_level--;
+
+#ifdef USE_TILE
+ // init micromap
+ GmapInit(false); // do not erase tile backup data
+ TileLoadWall(false);
+ tile_clear_buf();
+ if (newlevel)
+ tile_init_flavor();
+#endif // USE_TILE
+
switch (you.level_type)
{
case LEVEL_ABYSS:
@@ -1329,7 +1340,7 @@ void new_level(void)
{
textcolor(LIGHTGREY);
- gotoxy(crawl_view.hudp.x + 6, 12);
+ gotoxy(7, 12, GOTO_STAT);
#if DEBUG_DIAGNOSTICS
cprintf( "(%d) ", you.your_level + 1 );