From a8a183dca9dfa75807dadc556e84b20aab993ce8 Mon Sep 17 00:00:00 2001 From: ennewalker Date: Sat, 6 Sep 2008 03:13:34 +0000 Subject: Tiles mcache improvements. Monsters out of sight are now shown with their last seen equipment. Player ghosts are now drawn correctly again. Denzi's new 48x32 pandemonium demon tiles are now used. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6875 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tags.cc') 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 } -- cgit v1.2.3-54-g00ecf