summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-layouts.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-01-01 05:02:09 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-01-03 04:45:59 +0100
commit405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (patch)
tree792e3efe617bb42cfd8dadfb2c20947cad734e74 /crawl-ref/source/dgn-layouts.cc
parent29969a4f936d3357f5f25971cbff31c026872a29 (diff)
downloadcrawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.tar.gz
crawl-ref-405e9b68034c5e8793f6c169cbed7dd90d4ac8ba.zip
Use branch depth rather than absolute depth as the authoritative one.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r--crawl-ref/source/dgn-layouts.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc
index b1836f735a..bd8240f516 100644
--- a/crawl-ref/source/dgn-layouts.cc
+++ b/crawl-ref/source/dgn-layouts.cc
@@ -5,10 +5,11 @@
#include "AppHdr.h"
+#include "coordit.h"
#include "dungeon.h"
-#include "traps.h"
#include "libutil.h"
-#include "coordit.h"
+#include "place.h"
+#include "traps.h"
static bool _find_forbidden_in_area(dgn_region& area, unsigned int mask);
static int _count_antifeature_in_box(int x0, int y0, int x1, int y1,
@@ -42,8 +43,10 @@ static bool _may_overwrite_pos(coord_def c);
static void _build_river(dungeon_feature_type river_type);
static void _build_lake(dungeon_feature_type lake_type);
-void dgn_build_basic_level(int level_number)
+void dgn_build_basic_level()
{
+ int level_number = absdungeon_depth();
+
env.level_build_method += " basic";
env.level_layout_types.insert("basic");