diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-09 19:52:59 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-05-09 19:52:59 +0000 |
commit | d69688f0d70ebd684181678a77ca10f800258cfe (patch) | |
tree | 19b8b9fdd4c8194ea65d0729cdf44adf31ee7e60 /crawl-ref/source/hiscores.cc | |
parent | b31a9edb3090aa8dac6dc1fc70c5e241c3019642 (diff) | |
download | crawl-ref-d69688f0d70ebd684181678a77ca10f800258cfe.tar.gz crawl-ref-d69688f0d70ebd684181678a77ca10f800258cfe.zip |
Added Lemuel's mines minivaults.
Extended map DEPTH: attribute to support branch specifiers and negated depth
specifiers.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1442 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index 50e697b100..30f1928da9 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -631,16 +631,6 @@ static const char *short_branch_name(int branch) return (""); } -static branch_type str_to_branch(const std::string &branch) -{ - for (int i = 0; i < NUM_BRANCHES; ++i) - { - if (branches[i].abbrevname && branches[i].abbrevname == branch) - return (static_cast<branch_type>(i)); - } - return (BRANCH_MAIN_DUNGEON); -} - static const char *level_type_names[] = { "D", "Lab", "Abyss", "Pan" @@ -691,7 +681,7 @@ void scorefile_entry::init_with_fields() death_type = str_to_kill_method(fields->str_field("ktyp")); death_source_name = fields->str_field("killer"); auxkilldata = fields->str_field("kaux"); - branch = str_to_branch(fields->str_field("br")); + branch = str_to_branch(fields->str_field("br"), BRANCH_MAIN_DUNGEON); dlvl = fields->int_field("lvl"); level_type = str_to_level_area_type(fields->str_field("ltyp")); |