summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-labyrinth.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-12-28 05:56:51 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-01-03 04:45:58 +0100
commitaa2c033f1e51d41b6e12b0bba858e94cd26aa46c (patch)
tree149c7f48355a7c8804d4f0f05111415f3624d802 /crawl-ref/source/dgn-labyrinth.cc
parent6bd91421d6f26418f4fc84bfb692a3b132183780 (diff)
downloadcrawl-ref-aa2c033f1e51d41b6e12b0bba858e94cd26aa46c.tar.gz
crawl-ref-aa2c033f1e51d41b6e12b0bba858e94cd26aa46c.zip
Don't explicitely pass absdepth:branch in the dungeon builder.
There's no support for producing maps for a level you're not on, around half of functions assumed this.
Diffstat (limited to 'crawl-ref/source/dgn-labyrinth.cc')
-rw-r--r--crawl-ref/source/dgn-labyrinth.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-labyrinth.cc b/crawl-ref/source/dgn-labyrinth.cc
index 97e364c2f2..00d44f88e4 100644
--- a/crawl-ref/source/dgn-labyrinth.cc
+++ b/crawl-ref/source/dgn-labyrinth.cc
@@ -235,7 +235,7 @@ static void _change_walls_from_centre(const dgn_region &region,
_change_walls_from_centre(region, c, rectangular, MMT_VAULT, wall, ldist);
}
-static void _place_extra_lab_minivaults(int level_number)
+static void _place_extra_lab_minivaults()
{
std::set<const map_def*> vaults_used;
while (true)
@@ -493,7 +493,7 @@ static void _labyrinth_add_glass_walls(const dgn_region &region)
}
}
-void dgn_build_labyrinth_level(int level_number)
+void dgn_build_labyrinth_level()
{
env.level_build_method += " labyrinth";
env.level_layout_types.insert("labyrinth");
@@ -534,7 +534,7 @@ void dgn_build_labyrinth_level(int level_number)
if (vault)
end = place.pos + place.size / 2;
- _place_extra_lab_minivaults(level_number);
+ _place_extra_lab_minivaults();
_change_walls_from_centre(lab, end, false,
DNGN_ROCK_WALL,