diff options
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r-- | crawl-ref/source/tags.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 3c9ca7606f..d9991d58e9 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -87,6 +87,7 @@ #include "stuff.h" #include "tags.h" #include "tiles.h" +#include "tilemcache.h" #include "travel.h" // defined in overmap.cc @@ -1856,7 +1857,7 @@ void tag_construct_level_tiles(writer &th) unsigned int last_tile = 0; // tile routine subversion - marshallShort(th, 71); + marshallShort(th, TILETAG_CURRENT); // Map grids. // how many X? @@ -1935,6 +1936,8 @@ void tag_construct_level_tiles(writer &th) marshallByte(th, env.tile_flv[count_x][count_y].special); } + mcache.construct(th); + #endif } @@ -2251,6 +2254,11 @@ void tag_read_level_tiles(struct reader &th) env.tile_flv[x][y].special = unmarshallByte(th); } + if (ver > TILETAG_PRE_MCACHE) + mcache.read(th); + else + mcache.clear_all(); + #endif } @@ -2267,6 +2275,7 @@ static void tag_missing_level_tiles() env.tile_bk_fg[i][j] = 0; } + mcache.clear_all(); #endif } |