From 6760750eb72b4507db1f7660bab88e013dc3fa94 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 24 Sep 2007 20:08:10 +0000 Subject: Added DGL_STARTUP_PREFS_BY_NAME to store new character options by username for dgamelaunch. Dropped ice statue hitpoints to compensate for their immunity to disintegration. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2195 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/initfile.cc') diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index f37ac9da9b..5fc1f998ba 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -50,8 +50,6 @@ game_options Options; const static char *obj_syms = ")([/%.?=!.+\\0}X$"; const static int obj_syms_len = 16; -static void read_startup_prefs(); - template void append_vector(A &dest, const B &src) { dest.insert( dest.end(), src.begin(), src.end() ); @@ -1016,14 +1014,11 @@ std::string read_init_file(bool runscript) } read_options(f, runscript); - if (!runscript) - read_startup_prefs(); - fclose(f); return std::string(name_buff); } // end read_init_file() -static void read_startup_prefs() +void read_startup_prefs() { #ifndef DISABLE_STICKY_STARTUP_OPTIONS std::string fn = get_prefs_filename(); @@ -1589,11 +1584,13 @@ void game_options::read_option_line(const std::string &str, bool runscript) } } } +#ifndef DGAMELAUNCH else if (key == "name") { // field is already cleaned up from trim_string() player_name = field; } +#endif else if (key == "char_set" || key == "ascii_display") { bool valid = true; -- cgit v1.2.3-54-g00ecf