From 59dd9db8ac1b4aad55b7b902c802003d9f3872c1 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 24 Nov 2006 10:31:14 +0000 Subject: [1581184] Fixed rotting food being visible outside LOS. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@487 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tags.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index f671197067..1b875ccefb 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1436,6 +1436,8 @@ static void tag_construct_level(struct tagHeader &th) { marshallByte(th, grd[count_x][count_y]); marshallShort(th, env.map[count_x][count_y]); + marshallShort(th, env.map_col[count_x][count_y].colour); + marshallShort(th, env.map_col[count_x][count_y].flags); marshallByte(th, env.cgrid[count_x][count_y]); } } @@ -1598,6 +1600,14 @@ static void tag_read_level( struct tagHeader &th, char minorVersion ) if ((env.map[i][j] & 0xFF) == 201) // what is this?? env.map[i][j] = (env.map[i][j] & 0xFF00U) | 239; + if (minorVersion >= 11) + { + env.map_col[i][j].colour = unmarshallShort(th); + env.map_col[i][j].flags = unmarshallShort(th); + } + else + env.map_col[i][j].clear(); + mgrd[i][j] = NON_MONSTER; env.cgrid[i][j] = unmarshallByte(th); -- cgit v1.2.3-54-g00ecf