diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-01-01 05:02:09 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-03 04:45:59 +0100 |
commit | 405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (patch) | |
tree | 792e3efe617bb42cfd8dadfb2c20947cad734e74 /crawl-ref/source/dgn-swamp.cc | |
parent | 29969a4f936d3357f5f25971cbff31c026872a29 (diff) | |
download | crawl-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-swamp.cc')
-rw-r--r-- | crawl-ref/source/dgn-swamp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/dgn-swamp.cc b/crawl-ref/source/dgn-swamp.cc index 079ea6eeed..2550f2d55e 100644 --- a/crawl-ref/source/dgn-swamp.cc +++ b/crawl-ref/source/dgn-swamp.cc @@ -56,12 +56,12 @@ static void _swamp_apply_features(int margin) } } -void dgn_build_swamp_level(int level) +void dgn_build_swamp_level() { env.level_build_method += " swamp"; env.level_layout_types.insert("swamp"); - const int swamp_depth = level_id::current().depth - 1; + const int swamp_depth = you.depth - 1; dgn_initialise_heightmap(-17); _swamp_slushy_patches(swamp_depth * 3); dgn_smooth_heights(); |