summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 10:42:36 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-29 10:42:36 +0000
commit77be5ae4a0b896e42f0169d880582f3842568c83 (patch)
treefa6f318b9c73fa998798942bee709b54e945df49 /crawl-ref/source/initfile.cc
parent5d132a7fba202b7b19807d1058ac680bfbb1e0f3 (diff)
downloadcrawl-ref-77be5ae4a0b896e42f0169d880582f3842568c83.tar.gz
crawl-ref-77be5ae4a0b896e42f0169d880582f3842568c83.zip
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
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc11
1 files changed, 5 insertions, 6 deletions
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 );