diff --git a/Userland/Games/Minesweeper/CustomGameDialog.cpp b/Userland/Games/Minesweeper/CustomGameDialog.cpp index fd52f439328..60204992484 100644 --- a/Userland/Games/Minesweeper/CustomGameDialog.cpp +++ b/Userland/Games/Minesweeper/CustomGameDialog.cpp @@ -34,9 +34,8 @@ GUI::Dialog::ExecResult CustomGameDialog::show(GUI::Window* parent_window, Field void CustomGameDialog::set_max_mines() { - // Generating a field with > 50% mines takes too long. - // FIXME: Allow higher amount of mines to be placed. - m_mines_spinbox->set_max((m_rows_spinbox->value() * m_columns_spinbox->value()) / 2); + // NOTE: this is the maximum number of mines possible in a given minesweeper board + m_mines_spinbox->set_max((m_rows_spinbox->value() * m_columns_spinbox->value()) - 9); } CustomGameDialog::CustomGameDialog(Window* parent_window)