diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-07-24 22:34:07 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-07-24 22:34:38 -0400 |
commit | 9619582b28c4756e1af9585ddb6b9e7bbc99e2ec (patch) | |
tree | ca576cfb33642a3e878e98e88db1153e91a3c1fb /crawl-ref/source/dat | |
parent | f97c27f6958a0e2ce5ea80ab1f250c32133d5b23 (diff) | |
download | crawl-ref-9619582b28c4756e1af9585ddb6b9e7bbc99e2ec.tar.gz crawl-ref-9619582b28c4756e1af9585ddb6b9e7bbc99e2ec.zip |
Formatting Fixes
Diffstat (limited to 'crawl-ref/source/dat')
-rw-r--r-- | crawl-ref/source/dat/des/builder/layout_loops.des | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/dat/des/builder/layout_loops.des b/crawl-ref/source/dat/des/builder/layout_loops.des index 7979c723e9..7cdfe5f70f 100644 --- a/crawl-ref/source/dat/des/builder/layout_loops.des +++ b/crawl-ref/source/dat/des/builder/layout_loops.des @@ -753,9 +753,9 @@ function loopsInsertRoomHexagonNSOpen (e, center_x, center_y, radius) local abs_y = math.abs(y) local max_x = radius - math.ceil((abs_y - y_addend) / 2) for x = -radius, radius do - if (math.abs(x) <= max_x) then - e.mapgrd[center_x + x][center_y + y] = '.' - end + if (math.abs(x) <= max_x) then + e.mapgrd[center_x + x][center_y + y] = '.' + end end end end @@ -768,9 +768,9 @@ function loopsInsertRoomHexagonEWOpen (e, center_x, center_y, radius) local abs_x = math.abs(x) local max_y = radius - math.ceil((abs_x - x_addend) / 2) for y = -radius, radius do - if (math.abs(y) <= max_y) then - e.mapgrd[center_x + x][center_y + y] = '.' - end + if (math.abs(y) <= max_y) then + e.mapgrd[center_x + x][center_y + y] = '.' + end end end end @@ -879,7 +879,7 @@ function loopsInsertRoomHexagonNSSolid (e, center_x, center_y, local abs_x = math.abs(x) if (abs_x <= solid_x and abs_y < radius) then e.mapgrd[center_x + x][center_y + y] = wall_glyph - elseif (abs_x <= open_x) then + elseif (abs_x <= open_x) then e.mapgrd[center_x + x][center_y + y] = '.' end end @@ -897,9 +897,9 @@ function loopsInsertRoomHexagonEWSolid (e, center_x, center_y, local solid_y = radius - math.ceil((abs_x - x_addend + 2) / 2) for y = -radius, radius do local abs_y = math.abs(y) - if (abs_y <= solid_y and abs_x < radius) then + if (abs_y <= solid_y and abs_x < radius) then e.mapgrd[center_x + x][center_y + y] = wall_glyph - elseif (abs_y <= open_y) then + elseif (abs_y <= open_y) then e.mapgrd[center_x + x][center_y + y] = '.' end end |