summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Game.cpp8
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 8 deletions
diff --git a/src/Game.cpp b/src/Game.cpp
index 80bff12..6a75758 100644
--- a/src/Game.cpp
+++ b/src/Game.cpp
@@ -57,7 +57,7 @@ void Game::initBoard(){
// DEBUG: seeing bombs
// if(bombMap[i][j] == true){
// tileMap[i][j] = 11;
- // }
+ //}
}
}
}
@@ -65,12 +65,6 @@ void Game::initBoard(){
void Game::updateBoard(){
for(int x=0; x < boardWidth; x++){
for(int y=0; y < boardHeight; y++){
- if(revealed[x][y] == false){
- tileMap[x][y] = 0;
- } else {
- tileMap[x][y] = 1;
- }
-
if(Game::bombCheck(x, y) == 0 && revealed[x][y] == true){
revealed[x-1][y+1] = true;
revealed[x][y+1] = true;
diff --git a/src/main.cpp b/src/main.cpp
index 3cb5551..6dd0102 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -34,9 +34,9 @@ int main(){
game.initBoard();
while(game.inGame){
- game.updateBoard();
game.displayBoard();
game.input();
+ game.updateBoard();
}
return 0;