summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/state.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-05-12 16:29:11 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-05-12 18:59:18 +0200
commita3d94bd09c24a9aa1aab2fb875c27ca88b87ff35 (patch)
treedf52f4e809116a41aa40b77f94dd150331425f1b /crawl-ref/source/state.h
parentf468bf42f180507721435f1b0521071811be1064 (diff)
downloadcrawl-ref-a3d94bd09c24a9aa1aab2fb875c27ca88b87ff35.tar.gz
crawl-ref-a3d94bd09c24a9aa1aab2fb875c27ca88b87ff35.zip
Change the way command repetition is handled.
Instead of implicitly making _input() loop by adding a synthetic key to the input buffer, _do_repeat_cmd() now explicitly handles the repeats in a for-loop that calls _input(). This is probably far from done, but it already works better than the current broken state, so I'm pushing it.
Diffstat (limited to 'crawl-ref/source/state.h')
-rw-r--r--crawl-ref/source/state.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/crawl-ref/source/state.h b/crawl-ref/source/state.h
index ae902d861b..d9ca044779 100644
--- a/crawl-ref/source/state.h
+++ b/crawl-ref/source/state.h
@@ -69,13 +69,9 @@ struct game_state
std::deque<int> prev_cmd_keys;
command_type repeat_cmd;
- std::deque<int> repeat_cmd_keys;
bool cmd_repeat_start;
- int cmd_repeat_count;
- int cmd_repeat_goal;
command_type prev_repeat_cmd;
int prev_cmd_repeat_goal;
- int prev_repetition_turn;
bool cmd_repeat_started_unsafe;
std::vector<std::string> startup_errors;