diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-14 18:14:26 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-14 18:14:26 +0000 |
commit | 9fc1df65621c76cb9edbb781df61fabb21f61342 (patch) | |
tree | f6d2e8a707dc19ce7d99496f85652908a4e0f72a /crawl-ref/source/hiscores.cc | |
parent | 6a4da2697718db5497d17b552c11448ee47ef52a (diff) | |
download | crawl-ref-9fc1df65621c76cb9edbb781df61fabb21f61342.tar.gz crawl-ref-9fc1df65621c76cb9edbb781df61fabb21f61342.zip |
Remember choice of Beogh in character selection.
Some code reindenting and housekeeping.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1587 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index 4d72f3e42a..227406bf9a 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -38,6 +38,7 @@ #include "branch.h" #include "files.h" #include "hiscores.h" +#include "initfile.h" #include "itemname.h" #include "itemprop.h" #include "items.h" @@ -651,19 +652,6 @@ static level_area_type str_to_level_area_type(const std::string &s) return (LEVEL_DUNGEON); } -static god_type str_to_god(const std::string &god) -{ - if (god.empty()) - return GOD_NO_GOD; - - for (int i = GOD_NO_GOD; i < NUM_GODS; ++i) - { - if (god_name(static_cast<god_type>(i)) == god) - return (static_cast<god_type>(i)); - } - return (GOD_NO_GOD); -} - void scorefile_entry::init_with_fields() { version = fields->str_field("v"); |