summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordawidg81 <dawidgorski.m@gmail.com>2026-01-26 17:26:01 +0100
committerdawidg81 <dawidgorski.m@gmail.com>2026-01-26 17:26:01 +0100
commit773646966b6ea0cf69bd374ca55d60a030b873bc (patch)
tree4b738c2e65a16abceb9a856444037717561c693c
parent3806bb74674f305679efdaa2889d155531bc3643 (diff)
removed unnecesary function calls; debugging
-rw-r--r--src/Game/edit.cpp1
-rw-r--r--src/main.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Game/edit.cpp b/src/Game/edit.cpp
index 8d9c37f..af89e65 100644
--- a/src/Game/edit.cpp
+++ b/src/Game/edit.cpp
@@ -13,6 +13,7 @@ int Game::editDiff(){
std::cout << "Board width: ";
if(util.catchReturn(util.catchInputInt(Game::boardWidth)) != 0) return 1;
+ std::cout << Game::boardWidth;
std::cout << "Board height: ";
if(util.catchReturn(util.catchInputInt(Game::boardHeight)) != 0) return 1;
diff --git a/src/main.cpp b/src/main.cpp
index d36b797..3e1c1cc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -23,7 +23,7 @@ int main(){
} else if(choice == 3){
game.initDiff(2);
} else if(choice == 4){
- game.initDiff(3);
+ game.editDiff();
}
return 0;