summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 10:31:14 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-24 10:31:14 +0000
commit59dd9db8ac1b4aad55b7b902c802003d9f3872c1 (patch)
tree3dd0e2ca69bebd1f6c2fc661b02f75dafae7f80d /crawl-ref/source/tags.cc
parent6fdba2e9e01c86505290097b028f7197dc52d004 (diff)
downloadcrawl-ref-59dd9db8ac1b4aad55b7b902c802003d9f3872c1.tar.gz
crawl-ref-59dd9db8ac1b4aad55b7b902c802003d9f3872c1.zip
[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
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc10
1 files changed, 10 insertions, 0 deletions
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);