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 1f5c9c6cca..656b2a640f 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1574,6 +1574,7 @@ static void tag_construct_level(tagHeader &th)
marshallShort(th, env.map[count_x][count_y].object);
marshallShort(th, env.map[count_x][count_y].colour);
marshallShort(th, env.map[count_x][count_y].flags);
+ marshallShort(th, env.map[count_x][count_y].property);
marshallShort(th, env.cgrid[count_x][count_y]);
}
}
@@ -1608,6 +1609,10 @@ static void tag_construct_level(tagHeader &th)
marshallByte(th, env.shop[i].level);
}
+ marshallByte(th, env.sanctuary_x);
+ marshallByte(th, env.sanctuary_y);
+ marshallByte(th, env.sanctuary_time);
+
env.markers.write(th);
}
@@ -1806,6 +1811,7 @@ static void tag_read_level( tagHeader &th, char minorVersion )
env.map[i][j].object = unmarshallShort(th);
env.map[i][j].colour = unmarshallShort(th);
env.map[i][j].flags = unmarshallShort(th);
+ env.map[i][j].property = unmarshallShort(th);
mgrd[i][j] = NON_MONSTER;
env.cgrid[i][j] = (unsigned short) unmarshallShort(th);
@@ -1844,6 +1850,10 @@ static void tag_read_level( tagHeader &th, char minorVersion )
env.shop[i].level = unmarshallByte(th);
}
+ env.sanctuary_x = unmarshallByte(th);
+ env.sanctuary_y = unmarshallByte(th);
+ env.sanctuary_time = unmarshallByte(th);
+
env.markers.read(th);
}