summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_debug.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-12-15 15:34:40 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-12-16 11:16:32 +0100
commit80e07c57635955534d0e5c92a343d81b6ba90d86 (patch)
treed2b1923253744ae62ae7a57e6a8c5a444d79fcbb /crawl-ref/source/l_debug.cc
parentaf4a5b1402c2a2bfaa55b26d24ba98ce45af007b (diff)
downloadcrawl-ref-80e07c57635955534d0e5c92a343d81b6ba90d86.tar.gz
crawl-ref-80e07c57635955534d0e5c92a343d81b6ba90d86.zip
Fix most of data loss of tile information in console games.
All platforms we support in 0.10 allow freely going tiles<->console, loading or creating a save in console should still keep everything needed to display tiles intact. Left to go: * monsters with multiple tiles * player dolls
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r--crawl-ref/source/l_debug.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc
index 9de65d009c..16e622d1f2 100644
--- a/crawl-ref/source/l_debug.cc
+++ b/crawl-ref/source/l_debug.cc
@@ -26,9 +26,7 @@
#include "place.h"
#include "religion.h"
#include "stairs.h"
-#ifdef USE_TILE
- #include "tileview.h"
-#endif
+#include "tileview.h"
#include "view.h"
#include "wiz-dgn.h"
@@ -88,11 +86,9 @@ LUAFN(debug_generate_level)
no_messages mx;
env.map_knowledge.init(map_cell());
los_changed();
-#ifdef USE_TILE
tile_init_default_flavour();
tile_clear_flavour();
tile_new_level(true);
-#endif
builder(you.absdepth0, you.level_type,
lua_isboolean(ls, 1)? lua_toboolean(ls, 1) : true);
return (0);