summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stairs.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-06-08 11:49:27 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-06-08 12:42:05 +0200
commitbfbd93d7ffc3c14e35c22c605cf2d3e1a951637b (patch)
treec39bbf5fe74b2a1cd0d4808f068576922c05c3e0 /crawl-ref/source/stairs.h
parent4b4c3a1ca466d834d54e407595df71c537ef5b9a (diff)
downloadcrawl-ref-bfbd93d7ffc3c14e35c22c605cf2d3e1a951637b.tar.gz
crawl-ref-bfbd93d7ffc3c14e35c22c605cf2d3e1a951637b.zip
Replace down_stairs old_level argument by forced destination.
It was only used by portal, which fudged you.absdepth0 before handing over to down_stairs before. Now it explicitly tells down_stairs where to go.
Diffstat (limited to 'crawl-ref/source/stairs.h')
-rw-r--r--crawl-ref/source/stairs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stairs.h b/crawl-ref/source/stairs.h
index 3451df411c..5a8f23bc92 100644
--- a/crawl-ref/source/stairs.h
+++ b/crawl-ref/source/stairs.h
@@ -7,9 +7,9 @@
#define STAIRS_H
bool check_annotation_exclusion_warning();
-void down_stairs(int old_level,
- dungeon_feature_type force_stair = DNGN_UNSEEN,
- entry_cause_type entry_cause = EC_UNKNOWN);
+void down_stairs(dungeon_feature_type force_stair = DNGN_UNSEEN,
+ entry_cause_type entry_cause = EC_UNKNOWN,
+ const level_id* force_dest = NULL);
void up_stairs(dungeon_feature_type force_stair = DNGN_UNSEEN,
entry_cause_type entry_cause = EC_UNKNOWN);
void new_level();