From 77be5ae4a0b896e42f0169d880582f3842568c83 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 29 Jan 2007 10:42:36 +0000 Subject: Made default targeting an option (default_target, defaults to false.) If default_target is set, direction() now starts on the closest target (as if you pressed '+') if your previous target is invalid. Removed old fizzle check option. Ctrl-T is now free. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@902 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/initfile.cc | 11 +++++------ 1 file changed, 5 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 6f00509838..2f80f9f424 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -552,7 +552,6 @@ void game_options::reset_options() autopickup_on = true; autoprayer_on = false; - fizzlecheck_on = false; show_turns = true; @@ -593,6 +592,7 @@ void game_options::reset_options() easy_quit_item_prompts = true; hp_warning = 10; confirm_self_target = true; + default_target = false; safe_autopickup = true; autopickup_no_burden = false; use_notes = true; @@ -1394,11 +1394,6 @@ void game_options::read_option_line(const std::string &str, bool runscript) // should autoprayer default to on or off? autoprayer_on = read_bool( field, autoprayer_on ); } - else if (key == "default_fizzlecheck") - { - // should fizzlecheck default to on or off? - fizzlecheck_on = read_bool( field, fizzlecheck_on ); - } else if (key == "detailed_stat_dump") { detailed_stat_dump = @@ -1727,6 +1722,10 @@ void game_options::read_option_line(const std::string &str, bool runscript) { confirm_self_target = read_bool( field, confirm_self_target ); } + else if (key == "default_target") + { + default_target = read_bool( field, default_target ); + } else if (key == "safe_autopickup") { safe_autopickup = read_bool( field, safe_autopickup ); -- cgit v1.2.3-54-g00ecf