typo
This commit is contained in:
@@ -14,7 +14,7 @@ static const int FRAMES_PER_INPUT = FRAMES_PER_SECOND / 2;
|
||||
static const int MAXIMUM_PIECE_SIZE = 10;
|
||||
static const int DEFAULT_PIECE_SIZE = 4;
|
||||
static const int MAXIMUM_BOARD_WIDTH = 30;
|
||||
static const int MAXIMYM_BOARD_HEIGHT = 40;
|
||||
static const int MAXIMUM_BOARD_HEIGHT = 40;
|
||||
static const Gamemode DEFAULT_GAMEMODE = SPRINT;
|
||||
|
||||
|
||||
@@ -103,12 +103,12 @@ void TextApp::chooseBoardSize() {
|
||||
}
|
||||
catch (std::exception ignored) {}
|
||||
|
||||
std::cout << "Choose the height of the board (from 1 to " << MAXIMYM_BOARD_HEIGHT << ")." << std::endl;
|
||||
std::cout << "Choose the height of the board (from 1 to " << MAXIMUM_BOARD_HEIGHT << ")." << std::endl;
|
||||
std::cout << "Choice: ";
|
||||
std::getline(std::cin, answer);
|
||||
try {
|
||||
int selectedSize = std::stoi(answer);
|
||||
if (selectedSize >= 1 && selectedSize <= MAXIMYM_BOARD_HEIGHT) {
|
||||
if (selectedSize >= 1 && selectedSize <= MAXIMUM_BOARD_HEIGHT) {
|
||||
this->gameMenu.setBoardHeight(selectedSize);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user