summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/acr.cc4
-rw-r--r--crawl-ref/source/luadgn.cc5
2 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index b7071a0783..bc615905ce 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3508,6 +3508,10 @@ static bool _initialise(void)
if (crawl_state.test)
{
#ifdef DEBUG_DIAGNOSTICS
+#ifdef USE_TILE
+ init_player_doll();
+ tiles.initialise_items();
+#endif
Options.show_more_prompt = false;
crawl_tests::run_tests(true);
// Superfluous, just to make it clear that this is the end of
diff --git a/crawl-ref/source/luadgn.cc b/crawl-ref/source/luadgn.cc
index deb089d3f0..85709621e6 100644
--- a/crawl-ref/source/luadgn.cc
+++ b/crawl-ref/source/luadgn.cc
@@ -495,6 +495,11 @@ LUAFN(dgn_dbg_generate_level)
no_messages mx;
env.show.init(0);
env.map.init(map_cell());
+#ifdef USE_TILE
+ tile_init_default_flavour();
+ tile_clear_flavour();
+ TileNewLevel(true);
+#endif
builder(you.your_level, you.level_type);
return (0);
}