summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-height.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-06-17 10:39:40 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-06-17 10:39:40 +0200
commit1babb482820f931ead4fc06d6ebfdf18f353e839 (patch)
tree6844d1c66035dc9cc556260964a38a2d2edbaa22 /crawl-ref/source/dgn-height.cc
parent9e39fb4d790d5711be9440e7026be29270d21016 (diff)
downloadcrawl-ref-1babb482820f931ead4fc06d6ebfdf18f353e839.tar.gz
crawl-ref-1babb482820f931ead4fc06d6ebfdf18f353e839.zip
Clean up brace placement.
Diffstat (limited to 'crawl-ref/source/dgn-height.cc')
-rw-r--r--crawl-ref/source/dgn-height.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/dgn-height.cc b/crawl-ref/source/dgn-height.cc
index 58cad1af2f..74d8cba4d9 100644
--- a/crawl-ref/source/dgn-height.cc
+++ b/crawl-ref/source/dgn-height.cc
@@ -39,7 +39,8 @@ void dgn_island_centred_at(const coord_def &c,
false);
radius += 3;
}
- for (int i = 0; i < n_points; ++i) {
+ for (int i = 0; i < n_points; ++i)
+ {
const int thisrad = random2(1 + radius);
const coord_def p = dgn_random_point_from(c, thisrad, border_margin);
if (!p.origin())
@@ -56,8 +57,10 @@ void dgn_smooth_height_at(coord_def c, int radius, int max_height)
const int max_delta = radius * radius * 2 + 2;
int divisor = 0;
int total = 0;
- for (int y = c.y - radius; y <= c.y + radius; ++y) {
- for (int x = c.x - radius; x <= c.x + radius; ++x) {
+ for (int y = c.y - radius; y <= c.y + radius; ++y)
+ {
+ for (int x = c.x - radius; x <= c.x + radius; ++x)
+ {
const coord_def p(x, y);
if (!in_bounds(p))
continue;
@@ -139,7 +142,8 @@ void dgn_island_plan::build_island()
x_chance_in_y(atoll_roll, 100));
const int additional_heights = resolve_range(n_aux_centres);
- for (int i = 0; i < additional_heights; ++i) {
+ for (int i = 0; i < additional_heights; ++i)
+ {
const int addition_offset = resolve_range(aux_centre_offset_range);
const coord_def offsetC =