From 7a4add8760a04393313e7a9a6b4bbf9348a46a0e Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 12 Jun 2020 15:36:45 +0930 Subject: win message was wrong --- MainWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MainWindow.cpp') 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; } -- cgit v1.2.3