diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-12 15:36:45 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-12 15:36:45 +0930 |
commit | 7a4add8760a04393313e7a9a6b4bbf9348a46a0e (patch) | |
tree | f3b4ee98357ee68e8547f9c59384d48e67b37305 | |
parent | 5b10a46e44f2a8b3cc4e1577da8a05fc029fedef (diff) | |
download | foxminesweeper-7a4add8760a04393313e7a9a6b4bbf9348a46a0e.tar.gz foxminesweeper-7a4add8760a04393313e7a9a6b4bbf9348a46a0e.zip |
win message was wrong
-rw-r--r-- | MainWindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MainWindow.cpp b/MainWindow.cpp index ca632b6..13b1395 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -37,9 +37,9 @@ MainWindow::MainWindow(FXApp *a) matrix = nullptr; app = a; create_ui(); - int width = 15; - int height = 15; - int minecount = 33; + int width = 9; + int height = 9; + int minecount = 10; game_over = false; new_game(width, height, minecount); } @@ -249,7 +249,7 @@ MainWindow::on_Tile_Click(FXObject *sender, FXSelector sel, void *data) draw_buttons(); app->removeTimeout(this, UI_Timer_Tick); puts("you won the game"); - FXMessageBox::information(app, FX::MBOX_OK, "Game Over", "You lost in %ld seconds.", seconds); + FXMessageBox::information(app, FX::MBOX_OK, "Game Over", "You won in %ld seconds.", seconds); game_over = true; ticking = false; } |