summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-17 22:20:13 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-17 22:20:13 +0000
commit48b1b54aaf8c7ccc2b016158f58cf34385dd5068 (patch)
treed415f77648211e196b6f7d8f5075eaf6a1d411db /crawl-ref/source/tags.cc
parent78698f0432bba7bdac30f21a17a30c1cf88ae11b (diff)
downloadcrawl-ref-48b1b54aaf8c7ccc2b016158f58cf34385dd5068.tar.gz
crawl-ref-48b1b54aaf8c7ccc2b016158f58cf34385dd5068.zip
Fixed map marker crashes.
Reduced size of Pan demon bands summoned post-Orb (cbus). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2010 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index f90f9a6fee..057682d004 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -1429,13 +1429,7 @@ static void tag_construct_level(struct tagHeader &th)
marshallByte(th, env.shop[i].level);
}
- // how many markers
- marshallShort(th, env.markers.size());
- for (dgn_marker_map::const_iterator i = env.markers.begin();
- i != env.markers.end(); ++i)
- {
- i->second->write(th);
- }
+ env.markers.write(th);
}
static void marshall_item(tagHeader &th, const item_def &item)
@@ -1660,13 +1654,7 @@ static void tag_read_level( struct tagHeader &th, char minorVersion )
env.shop[i].level = unmarshallByte(th);
}
- env_clear_markers();
- const int nmarkers = unmarshallShort(th);
- for (int i = 0; i < nmarkers; ++i)
- {
- if (map_marker *mark = map_marker::read_marker(th))
- env_add_marker(mark);
- }
+ env.markers.read(th);
}
static void tag_read_level_items(struct tagHeader &th, char minorVersion)