summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-16 09:30:51 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-16 11:10:52 +0100
commit67c7f20af3961332b018ba2395484f569ded1f30 (patch)
tree844e5ea16d0c26e37bbfaa9d7958e2f048216636 /crawl-ref/source/tags.cc
parentf30792570c9dc333ac42760f56dc40244e8c95aa (diff)
downloadcrawl-ref-67c7f20af3961332b018ba2395484f569ded1f30.tar.gz
crawl-ref-67c7f20af3961332b018ba2395484f569ded1f30.zip
Remove map_cell::colour.
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 4e1e75c8a1..0113bb50a6 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1803,7 +1803,6 @@ static void tag_construct_level(writer &th)
{
marshallByte(th, grd[count_x][count_y]);
marshallShowtype(th, env.map_knowledge[count_x][count_y].object);
- marshallShort(th, env.map_knowledge[count_x][count_y].colour);
marshallShort(th, env.map_knowledge[count_x][count_y].flags);
marshallLong(th, env.pgrid[count_x][count_y]);
marshallShort(th, env.cgrid[count_x][count_y]);
@@ -2186,7 +2185,8 @@ static void tag_read_level( reader &th, char minorVersion )
static_cast<unsigned char>(unmarshallByte(th)) );
env.map_knowledge[i][j].object = unmarshallShowtype(th);
- env.map_knowledge[i][j].colour = unmarshallShort(th);
+ if (minorVersion < TAG_MINOR_MAPCELL_NOCOLOUR)
+ unmarshallShort(th);
env.map_knowledge[i][j].flags = unmarshallShort(th);
env.pgrid[i][j] = unmarshallLong(th);