summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
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);