From 275ffdabdfae060ba0eb111813044a7ff2200620 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 23 Nov 2008 23:54:02 +0000 Subject: 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 --- crawl-ref/source/hiscores.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/hiscores.cc') 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"); -- cgit v1.2.3-54-g00ecf