summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/hiscores.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 23:54:02 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-23 23:54:02 +0000
commit275ffdabdfae060ba0eb111813044a7ff2200620 (patch)
treea783a337e85611cf706846028f0fa227f9595214 /crawl-ref/source/hiscores.cc
parent9cdeda9a8b2b02967cfe523082d69b3072a6a5ab (diff)
downloadcrawl-ref-275ffdabdfae060ba0eb111813044a7ff2200620.tar.gz
crawl-ref-275ffdabdfae060ba0eb111813044a7ff2200620.zip
Allow Lua to place vaults with dgn.place_map().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7564 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r--crawl-ref/source/hiscores.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc
index 9938e379b0..14d598fd77 100644
--- a/crawl-ref/source/hiscores.cc
+++ b/crawl-ref/source/hiscores.cc
@@ -587,7 +587,7 @@ const char *level_area_type_name(int level_type)
return ("");
}
-static level_area_type _str_to_level_area_type(const std::string &s)
+level_area_type str_to_level_area_type(const std::string &s)
{
for (int i = 0; i < NUM_LEVEL_AREA_TYPES; ++i)
if (s == level_type_names[i])
@@ -616,7 +616,7 @@ void scorefile_entry::init_with_fields()
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"));
+ level_type = str_to_level_area_type(fields->str_field("ltyp"));
final_hp = fields->int_field("hp");
final_max_hp = fields->int_field("mhp");