summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 00f4583..7e05af5 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -490,7 +490,7 @@ impl Game {
match c {
'q' => return Some(StepResult::Quit),
'k' => {
- if self.menu_selected < self.menu.len() {
+ if self.menu_selected + 1 < self.menu.len() {
self.menu_selected += 1;
Some(StepResult::StateChanged)
} else {
@@ -709,7 +709,6 @@ fn main() {
let tui = Tui::default();
let mut game = Game::default();
tui.display_game(&game);
- std::thread::sleep(std::time::Duration::from_millis(1000));
let mut noblock_stdin = NonBlockingReader::from_fd(std::io::stdin()).unwrap();
'outer: while !noblock_stdin.is_eof() {
let mut buf = String::new();