diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-11-16 15:22:21 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-04-07 00:23:16 +0200 |
commit | f9078c86f36ddad9e59edcd7e831dbc8867afee7 (patch) | |
tree | dff7267ce50651596ac2160776336de06edd5a3f /crawl-ref/source/place.cc | |
parent | 6cbf94bf9a93561883ace832e5f76cd7f642eb75 (diff) | |
download | crawl-ref-f9078c86f36ddad9e59edcd7e831dbc8867afee7.tar.gz crawl-ref-f9078c86f36ddad9e59edcd7e831dbc8867afee7.zip |
Use the level stack to save return target for portal vaults/Abyss/Pan/Zigs/Lab.
Unlike the initial implementation that was talked about, this one nearly
completely ignores what stair is used to do X, meaning you can exit a branch
by any stair that goes up, etc.
Also, this commit earns the prize of the most rebased and edited one. And it
ended up a tiny fraction of its initial size, with far simpler code to boot.
Diffstat (limited to 'crawl-ref/source/place.cc')
-rw-r--r-- | crawl-ref/source/place.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/crawl-ref/source/place.cc b/crawl-ref/source/place.cc index 0e69815f41..9266d724be 100644 --- a/crawl-ref/source/place.cc +++ b/crawl-ref/source/place.cc @@ -107,32 +107,6 @@ int absdungeon_depth(branch_type branch, int subdepth) return subdepth; } -// Returns true if exits from this type of level involve going upstairs. -bool branch_exits_up(branch_type branch) -{ - switch (branch) - { - case BRANCH_ZIGGURAT: - case BRANCH_LABYRINTH: - case BRANCH_BAZAAR: - case BRANCH_TROVE: - case BRANCH_SEWER: - case BRANCH_OSSUARY: - case BRANCH_BAILEY: - case BRANCH_ICE_CAVE: - case BRANCH_VOLCANO: - case BRANCH_WIZLAB: - return true; - default: - return false; - } -} - -bool branch_exits_down(branch_type branch) -{ - return (branch == BRANCH_PANDEMONIUM || branch == BRANCH_ABYSS); -} - bool branch_allows_followers(branch_type branch) { return (is_connected_branch(branch) || branch == BRANCH_PANDEMONIUM); |