diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-18 20:29:53 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-18 20:29:53 +0000 |
commit | b4338a00f5d85699e599307f09d502e3cbd621dc (patch) | |
tree | 4d6a92ff46a4554fa68dc3086408678f133deca6 /crawl-ref/source/initfile.cc | |
parent | ef5094188d7c6837338f773c33e6cd5c05d17cd9 (diff) | |
download | crawl-ref-b4338a00f5d85699e599307f09d502e3cbd621dc.tar.gz crawl-ref-b4338a00f5d85699e599307f09d502e3cbd621dc.zip |
Change part of the z/Z handling:
* added option darken_beyond_range (defaults to true)
* Z doesn't show the spell list anymore
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10278 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r-- | crawl-ref/source/initfile.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc index 0a61a61c38..eeb349a65b 100644 --- a/crawl-ref/source/initfile.cc +++ b/crawl-ref/source/initfile.cc @@ -840,6 +840,7 @@ void game_options::reset_options() target_oos = true; target_los_first = true; target_unshifted_dirs = false; + target_range = 0; // -1 -> grey out targets out of range dump_kill_places = KDO_ONE_PLACE; dump_message_count = 7; @@ -3004,6 +3005,11 @@ void game_options::read_option_line(const std::string &str, bool runscript) if (target_unshifted_dirs) default_target = false; } + else if (key == "darken_beyond_range") + { + if (!_read_bool(field, target_range != -1)) + target_range = -1; + } else if (key == "drop_mode") { if (field.find("multi") != std::string::npos) |