summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/branch.cc')
-rw-r--r--crawl-ref/source/branch.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/branch.cc b/crawl-ref/source/branch.cc
index 1cfa5fe251..728ce416ff 100644
--- a/crawl-ref/source/branch.cc
+++ b/crawl-ref/source/branch.cc
@@ -10,6 +10,7 @@
#include "cloud.h"
#include "externs.h"
#include "mon-pick.h"
+#include "place.h"
#include "player.h"
#include "spells3.h"
#include "traps.h"
@@ -19,6 +20,11 @@ Branch& your_branch()
return branches[you.where_are_you];
}
+bool at_branch_bottom()
+{
+ return your_branch().depth == player_branch_depth();
+}
+
branch_type str_to_branch(const std::string &branch, branch_type err)
{
for (int i = 0; i < NUM_BRANCHES; ++i)