summaryrefslogtreecommitdiff
path: root/src/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game.cpp')
-rw-r--r--src/Game.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index c545530..07c1519 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -12,7 +12,7 @@ void Game::initDiff(int diff){
boardHeight = 9;
mines = 9;
break;
- case 1:
+ case 1:
boardWidth = 16;
boardHeight = 16;
mines = 12;
@@ -163,7 +163,7 @@ void Game::input(){
int x, y;
std::cin >> x >> y;
-
+
if(x < 0 || x >= boardWidth || y < 0 || y >= boardHeight) return;
if(cmd == "d"){
if(bombMap[y][x]){
@@ -192,4 +192,4 @@ void Game::input(){
//if(cmd == "f"){
// flag[y][x] = true;
//}
-}
+}