summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-15 22:06:31 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-15 22:06:31 +0000
commitf286cbea0ccc47a5d9c6a113f1d40460f7197a78 (patch)
treee93fcf6d8ab858364ba512e82a96a1e0e533a689 /crawl-ref/source/initfile.cc
parent4a08b83f96c0579682fd9e9ec4e64eac0e4d854f (diff)
downloadcrawl-ref-f286cbea0ccc47a5d9c6a113f1d40460f7197a78.tar.gz
crawl-ref-f286cbea0ccc47a5d9c6a113f1d40460f7197a78.zip
Added an option, always_confirm_butcher.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2857 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 86d7c1c10a..2704b3efe6 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -604,6 +604,7 @@ void game_options::reset_options()
easy_open = true;
easy_unequip = true;
easy_butcher = true;
+ always_confirm_butcher = false;
easy_confirm = CONFIRM_SAFE_EASY;
easy_quit_item_prompts = true;
hp_warning = 10;
@@ -1684,6 +1685,10 @@ void game_options::read_option_line(const std::string &str, bool runscript)
// automatic knife switching
easy_butcher = read_bool( field, easy_butcher );
}
+ else if (key == "always_confirm_butcher")
+ {
+ always_confirm_butcher = read_bool( field, always_confirm_butcher );
+ }
else if (key == "lua_file" && runscript)
{
#ifdef CLUA_BINDINGS