From dd4158d514297586e5fa76269dd6f6f6df5c3c2c Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 25 Oct 2007 12:19:25 +0000 Subject: 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 --- crawl-ref/source/mapdef.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/mapdef.cc') 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)) -- cgit v1.2.3-54-g00ecf