Skip to content

Commit 603ddda

Browse files
refactoring + win screen input mapping
1 parent 729f357 commit 603ddda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ fn win (root: &mut Root, board: &mut Board) {
521521

522522
// also draw solved board
523523
draw_board(root, board);
524+
label(root, "Press (almost) any key to continue", MIN_HEIGHT-2, MIN_WIDTH/2, true);
524525

525526
// rendering
526527
root.flush();
@@ -536,9 +537,7 @@ fn win (root: &mut Root, board: &mut Board) {
536537
tcod::input::Key { code: Tab, left_alt: true, .. } => false,
537538
tcod::input::Key { code: Alt, .. } => false,
538539
_=> true
539-
}} {
540-
println!("Press (almost) any key to continue");
541-
}
540+
}} {}
542541

543542
// valid key pressed, back to menu
544543
menu(root);

0 commit comments

Comments
 (0)