summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/env.h
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/env.h
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/env.h')
-rw-r--r--crawl-ref/source/env.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h
index 7b4dc16a2d..957dc4c4a0 100644
--- a/crawl-ref/source/env.h
+++ b/crawl-ref/source/env.h
@@ -51,12 +51,16 @@ struct crawl_environment
std::set<coord_def> visible;
// indexed by grid coords
+#ifdef USE_TILE
FixedArray<tile_fg_store, GXM, GYM> tile_bk_fg;
FixedArray<tileidx_t, GXM, GYM> tile_bk_bg;
+#endif
FixedArray<tile_flavour, GXM, GYM> tile_flv;
// indexed by (show-1) coords
+#ifdef USE_TILE
FixedArray<tileidx_t, ENV_SHOW_DIAMETER, ENV_SHOW_DIAMETER> tile_fg;
FixedArray<tileidx_t, ENV_SHOW_DIAMETER, ENV_SHOW_DIAMETER> tile_bg;
+#endif
tile_flavour tile_default;
std::vector<std::string> tile_names;