diff --git a/src/main.cpp b/src/main.cpp index 48b26e9..41bc375 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -177,10 +177,10 @@ void startGame(Board &board) cursorX = (cursorX < boardSize.x - 1) ? cursorX + 1 : 0; break; case 'q': - exit(0); echo(); cbreak(); endwin(); + exit(0); break; case 'z': if (!somethingHasBeenDone) @@ -283,10 +283,10 @@ void startGame(Board &board) Board newBoard(boardSize.x, boardSize.y, board.getMineCount()); startGame(newBoard); } else if(c == 'q') { - exit(0); echo(); cbreak(); endwin(); + exit(0); } }; } @@ -313,10 +313,10 @@ void startGame(Board &board) Board newBoard(boardSize.x, boardSize.y, board.getMineCount()); startGame(newBoard); } else if(c == 'q') { - exit(0); echo(); cbreak(); endwin(); + exit(0); } }; }