summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-irregular-box.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-05-09 22:52:20 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-05-09 22:52:20 +0200
commita5726ed7d5f0294230cc6a1bf61e33ad9e07a9f6 (patch)
treed3efd792eb2447e7cb8e9abf27ac98f17d6751de /crawl-ref/source/dgn-irregular-box.cc
parentef70f21f573cc66fde5a32562b9eb5859b2e36dd (diff)
downloadcrawl-ref-a5726ed7d5f0294230cc6a1bf61e33ad9e07a9f6.tar.gz
crawl-ref-a5726ed7d5f0294230cc6a1bf61e33ad9e07a9f6.zip
Formatting fixes.
Diffstat (limited to 'crawl-ref/source/dgn-irregular-box.cc')
-rw-r--r--crawl-ref/source/dgn-irregular-box.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-irregular-box.cc b/crawl-ref/source/dgn-irregular-box.cc
index 1934244edd..4e6d4d8467 100644
--- a/crawl-ref/source/dgn-irregular-box.cc
+++ b/crawl-ref/source/dgn-irregular-box.cc
@@ -69,7 +69,7 @@ static void _randomly_force_sum_below(int& a, int& b, int sum)
if(sum <= 0)
return;
- while(a + b >= sum)
+ while (a + b >= sum)
{
if(random2(2) == 0)
a = random2(a);
@@ -331,7 +331,7 @@ static void _flood_fill(vector<vector<char> >& map, int start_x, int start_y,
map[start_x][start_y] = new_glyph;
stack.push_back(coord_def(start_x, start_y));
- while(!stack.empty())
+ while (!stack.empty())
{
int x = stack.back().x;
int y = stack.back().y;
@@ -484,7 +484,7 @@ void make_irregular_box(map_lines& map, int x1, int y1, int x2, int y2,
// Overlapping corners are really hard to detect beforehand
// and quite rare, so we will just regenerate the whole
// room if they happen.
- while(regenerate_needed)
+ while (regenerate_needed)
{
new_glyphs.assign(size_x, vector<char>(size_y, UNSET_GLYPH));