summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/branch.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-07 15:42:57 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-07 15:42:57 +0000
commit95367a34cdd01b1e436f31a169626f68175330c4 (patch)
tree7e18dc6081f3386f6cb08ed3905f319948cd023b /crawl-ref/source/branch.cc
parent5d21ab53cd4c5c73b5aa0c69376619a4992c9414 (diff)
downloadcrawl-ref-95367a34cdd01b1e436f31a169626f68175330c4.tar.gz
crawl-ref-95367a34cdd01b1e436f31a169626f68175330c4.zip
More refactoring.
Removed the limit on how many monsters can be generated as I don't think it was ever being reached. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1257 c06c8d41-db1a-0410-9941-cceddc491573
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 b0fcfe9c0e..ff56d2fe1b 100644
--- a/crawl-ref/source/branch.cc
+++ b/crawl-ref/source/branch.cc
@@ -4,8 +4,14 @@
#include "AppHdr.h"
#include "branch.h"
+#include "externs.h"
#include "mon-pick.h"
+Branch& your_branch()
+{
+ return branches[static_cast<int>(you.where_are_you)];
+}
+
Branch branches[] = {
{ BRANCH_MAIN_DUNGEON, BRANCH_MAIN_DUNGEON, 27, -1,