summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-maps.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-08-01 16:09:16 -0400
committerNeil Moore <neil@s-z.org>2012-08-01 17:08:37 -0400
commit1cc90225baf47270bbe2a22c1ecbbc839eaa2b90 (patch)
treebd8816720989c3d2193ccaa82cbca5f7b6f2deca /crawl-ref/source/dbg-maps.cc
parenta0a9240421e89e77aac6011671931521d7e60f0a (diff)
downloadcrawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.tar.gz
crawl-ref-1cc90225baf47270bbe2a22c1ecbbc839eaa2b90.zip
Massive style fix (braces, indentation, etc.)
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r--crawl-ref/source/dbg-maps.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc
index fbd04b05b1..739dd21ebc 100644
--- a/crawl-ref/source/dbg-maps.cc
+++ b/crawl-ref/source/dbg-maps.cc
@@ -53,7 +53,9 @@ static bool _mg_is_disconnected_level()
// Don't care about non-Dungeon levels.
if (!player_in_connected_branch()
|| (branches[you.where_are_you].branch_flags & BFLAG_ISLANDED))
+ {
return false;
+ }
return dgn_count_disconnected_zones(true);
}
@@ -360,7 +362,9 @@ static void _write_mapgen_stats()
std::multimap<int, std::string> usedmaps;
for (std::map<std::string, int>::const_iterator i =
mapgen_try_count.begin(); i != mapgen_try_count.end(); ++i)
+ {
usedmaps.insert(std::pair<int, std::string>(i->second, i->first));
+ }
for (std::multimap<int, std::string>::reverse_iterator i =
usedmaps.rbegin(); i != usedmaps.rend(); ++i)