summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-25 12:19:25 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-25 12:19:25 +0000
commitdd4158d514297586e5fa76269dd6f6f6df5c3c2c (patch)
tree8b4eebe389bcb9427d832e46e00c09aa6573e90f /crawl-ref/source/mapdef.cc
parentfe973ee1c8d4069d19fe9b393d98b3db65556e24 (diff)
downloadcrawl-ref-dd4158d514297586e5fa76269dd6f6f6df5c3c2c.tar.gz
crawl-ref-dd4158d514297586e5fa76269dd6f6f6df5c3c2c.zip
dgn_place_map takes a coord_def to specify the centre of the map for minivaults and floating vaults. This placement can be activated using an asterisk (mapname*) when entering the name of the map in the &L command.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2559 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index 44e487afd3..47971f4191 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -1304,7 +1304,7 @@ void map_def::read_index(FILE *inf)
void map_def::write_depth_ranges(FILE *outf) const
{
writeShort(outf, depths.size());
- for (int i = 0, size = depths.size(); i < size; ++i)
+ for (int i = 0, sz = depths.size(); i < sz; ++i)
depths[i].write(outf);
}
@@ -1477,7 +1477,7 @@ std::string map_def::validate_map_def()
bool map_def::is_usable_in(const level_id &lid) const
{
bool any_matched = false;
- for (int i = 0, size = depths.size(); i < size; ++i)
+ for (int i = 0, sz = depths.size(); i < sz; ++i)
{
const level_range &lr = depths[i];
if (lr.matches(lid))