summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-maps.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-02 06:48:20 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-02 13:44:54 +0100
commit6a31aa9e10181fa0bcdebe7ab263b7e428bd605a (patch)
treec62b9cdb1363bf1eb979f545dd66fa322df4a7b9 /crawl-ref/source/dbg-maps.cc
parentea129f0f56d9dfc1b3abd5653b1737c2a6089684 (diff)
downloadcrawl-ref-6a31aa9e10181fa0bcdebe7ab263b7e428bd605a.tar.gz
crawl-ref-6a31aa9e10181fa0bcdebe7ab263b7e428bd605a.zip
Store the entry level for every branch (rather than just depth).
This allows moving branches around without breaking save compat or at least serious hacks. The portal stack can be probably dropped now: two copies of the same level can't exist anyway.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r--crawl-ref/source/dbg-maps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc
index 67c7129319..bc3a9c2671 100644
--- a/crawl-ref/source/dbg-maps.cc
+++ b/crawl-ref/source/dbg-maps.cc
@@ -176,7 +176,7 @@ static bool mg_build_dungeon()
you.depth = lid.depth;
// An unholy hack, FIXME!
- if (startdepth[BRANCH_FOREST] == -1
+ if (!brentry[BRANCH_FOREST].is_valid()
&& lid.branch == BRANCH_FOREST && lid.depth == 5)
{
you.unique_creatures.set(MONS_THE_ENCHANTRESS, false);