summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgnbld.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-25 16:35:56 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-25 16:35:56 +0200
commite8da5e6c01950dd649f90030a2c77654480e4369 (patch)
treeb8749886499f49f092be6362fe1e42bbabd53bfd /crawl-ref/source/l_dgnbld.cc
parentb15ddc7bf0397d5034f0514c2d76e717da0819ba (diff)
parentfb959798448db7e13e6485f7fece472404f21f0e (diff)
downloadcrawl-ref-e8da5e6c01950dd649f90030a2c77654480e4369.tar.gz
crawl-ref-e8da5e6c01950dd649f90030a2c77654480e4369.zip
Merge branch 'master' into portal_branches
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 41dee33dbb..2d91859984 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)))
{