summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/options.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-16 17:48:53 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-16 20:32:25 +0100
commit2c9b3ce286f5c274cb0348253259bcca24d967a3 (patch)
treee1ac204d887238915b3fd8a2755b66973fd8bc9f /crawl-ref/source/options.h
parent5059f548248efbc905c16a7cfbaa41d98c30dcb0 (diff)
downloadcrawl-ref-2c9b3ce286f5c274cb0348253259bcca24d967a3.tar.gz
crawl-ref-2c9b3ce286f5c274cb0348253259bcca24d967a3.zip
Simplify out-of-range darkening.
Also fixes the range_view_annotator destructor clobbering option "darken_beyond_range". Options.target_range is now really an option, and called Options.darken_beyond_range. Current darkening range is now stored in crawl_state.darken_range. I can't reproduce SIGHUP retaining darkened range (BR 2151183) (why would it be saved?), so range_view_annotator is not a crawl_exit_hook anymore. crawl_exit_hook is not used anymore, but still present.
Diffstat (limited to 'crawl-ref/source/options.h')
-rw-r--r--crawl-ref/source/options.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/options.h b/crawl-ref/source/options.h
index b344176e99..f24d7f49c7 100644
--- a/crawl-ref/source/options.h
+++ b/crawl-ref/source/options.h
@@ -129,7 +129,7 @@ public:
int colour[16]; // macro fg colours to other colours
int background; // select default background colour
int channels[NUM_MESSAGE_CHANNELS]; // msg channel colouring
- int target_range; // for whether targetting is out of range
+ bool darken_beyond_range; // for whether targetting is out of range
bool use_old_selection_order; // use old order of species/classes in
// selection screen