Compare commits
10 Commits
quit-bugfi
...
b1af7b4f41
| Author | SHA1 | Date | |
|---|---|---|---|
| b1af7b4f41 | |||
| 2b0f20d65a | |||
| e394d0986e | |||
| d8eb655dd7 | |||
| b878c2ddb3 | |||
| a0e5850e68 | |||
| 84972ed9bb | |||
| 08f6ee7161 | |||
| f7d2f138ea | |||
| 1d07cee01a |
@@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user