From 2c9b3ce286f5c274cb0348253259bcca24d967a3 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Mon, 16 Nov 2009 17:48:53 +0100 Subject: 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. --- crawl-ref/source/state.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/state.cc') diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index 299390c526..6918a7061d 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -33,7 +33,8 @@ game_state::game_state() doing_prev_cmd_again(false), prev_cmd(CMD_NO_CMD), repeat_cmd(CMD_NO_CMD), cmd_repeat_count(0), cmd_repeat_goal(0), prev_repetition_turn(0), cmd_repeat_started_unsafe(false), - input_line_curr(0), level_annotation_shown(false) + input_line_curr(0), level_annotation_shown(false), + darken_range(-1) { reset_cmd_repeat(); reset_cmd_again(); -- cgit v1.2.3-54-g00ecf