summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-12 18:00:32 -0400
committerNeil Moore <neil@s-z.org>2014-05-12 18:11:14 -0400
commit9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch)
treeca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/maps.cc
parentbca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff)
downloadcrawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz
crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 9497ffa965..8dc9e4a185 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -492,7 +492,9 @@ static bool _connected_minivault_place(const coord_def &c,
if (_may_overwrite_feature(ci, false, false)
|| (place.map.has_tag("replace_portal")
&& _is_portal_place(ci)))
+ {
return true;
+ }
}
return false;
@@ -1503,8 +1505,10 @@ void reread_maps()
void dump_map(const map_def &map)
{
if (crawl_state.dump_maps)
+ {
fprintf(stderr, "\n----------------------------------------\n%s\n",
map.describe().c_str());
+ }
}
void add_parsed_map(const map_def &md)
@@ -1536,8 +1540,10 @@ void run_map_local_preludes()
{
string err = vdefs[i].run_lua(true);
if (!err.empty())
+ {
mprf(MSGCH_ERROR, "Lua error (map %s): %s",
vdefs[i].name.c_str(), err.c_str());
+ }
}
}
}