summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnbld.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-20 03:11:25 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-20 03:28:26 +0200
commit8e11520da146f4b6b39dadbbd4ced0237ca0b606 (patch)
tree46c2ca023d1e6f0aa16e774d6f43dbd50019664f /crawl-ref/source/l_dgnbld.cc
parent9716a531a19f089821689a32910f9f5bf2864fe4 (diff)
downloadcrawl-ref-8e11520da146f4b6b39dadbbd4ced0237ca0b606.tar.gz
crawl-ref-8e11520da146f4b6b39dadbbd4ced0237ca0b606.zip
Drop pointless braces after if/for/while everywhere.
Diffstat (limited to 'crawl-ref/source/l_dgnbld.cc')
-rw-r--r--crawl-ref/source/l_dgnbld.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/crawl-ref/source/l_dgnbld.cc b/crawl-ref/source/l_dgnbld.cc
index 4b2576d378..77cdd6b8b9 100644
--- a/crawl-ref/source/l_dgnbld.cc
+++ b/crawl-ref/source/l_dgnbld.cc
@@ -152,9 +152,7 @@ static int _fill_area(lua_State *ls, map_lines &lines, int x1, int y1, int x2, i
{
for (int y = y1; y <= y2; ++y)
for (int x = x1; x <= x2; ++x)
- {
lines(x, y) = fill;
- }
return (0);
}
@@ -727,14 +725,10 @@ LUAFN(dgn_replace_first)
return (0);
if (xdir < -1 || xdir > 1)
- {
return (luaL_error(ls, "Invalid xdir: %d", xdir));
- }
if (ydir < -1 || ydir > 1)
- {
return (luaL_error(ls, "Invalid ydir: %d", ydir));
- }
while (lines.in_bounds(coord_def(x, y)))
{