diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-01-01 05:04:13 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-03 04:46:00 +0100 |
commit | e96f19b77b2a50f2ed3b0169e066b941a58ea495 (patch) | |
tree | 06b5773326cb2f9bf2efc71224d388818beffc41 /crawl-ref/source/dgn-layouts.cc | |
parent | 405e9b68034c5e8793f6c169cbed7dd90d4ac8ba (diff) | |
download | crawl-ref-e96f19b77b2a50f2ed3b0169e066b941a58ea495.tar.gz crawl-ref-e96f19b77b2a50f2ed3b0169e066b941a58ea495.zip |
Cache absdepth0, now that it has to be calculated.
The cached value intentionally is stored in env.absdepth0 rather than
you.absdepth0 to catch attempts to modify it.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r-- | crawl-ref/source/dgn-layouts.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc index bd8240f516..9e5a09361d 100644 --- a/crawl-ref/source/dgn-layouts.cc +++ b/crawl-ref/source/dgn-layouts.cc @@ -8,7 +8,6 @@ #include "coordit.h" #include "dungeon.h" #include "libutil.h" -#include "place.h" #include "traps.h" static bool _find_forbidden_in_area(dgn_region& area, unsigned int mask); @@ -45,7 +44,7 @@ static void _build_lake(dungeon_feature_type lake_type); void dgn_build_basic_level() { - int level_number = absdungeon_depth(); + int level_number = env.absdepth0; env.level_build_method += " basic"; env.level_layout_types.insert("basic"); |