diff options
author | Daniel Jones <admin@danieljon.es> | 2020-04-27 23:11:06 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-04-27 23:11:06 +0930 |
commit | 9080cdebf0ac27a3ceee46b400aa6bf1748dfa6f (patch) | |
tree | ba6d5055fe8a6e2de0889a2291eb39a732145cca | |
parent | 1615d0acf4876e61b2b00c741683908e2d8e7415 (diff) | |
download | csweeper-9080cdebf0ac27a3ceee46b400aa6bf1748dfa6f.tar.gz csweeper-9080cdebf0ac27a3ceee46b400aa6bf1748dfa6f.zip |
prevent exiting right away after watching demo if acicdentally hit a key
-rw-r--r-- | ncsweeper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ncsweeper.c b/ncsweeper.c index ab1dc4c..42308de 100644 --- a/ncsweeper.c +++ b/ncsweeper.c @@ -701,6 +701,7 @@ main(int argc, char **argv) } } mvprintw(game.height+4, 0, "press any key to exit.."); + flushinp(); getch(); safe_exit: delwin(window); |