[gnome-sudoku] Fix the "new difficulty" option after winning



commit 4809405ddd641174c8e06e04b314741e601add10
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Sep 6 15:00:06 2014 -0500

    Fix the "new difficulty" option after winning

 src/gnome-sudoku.vala |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 1516133..844e9c3 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -262,13 +262,7 @@ public class Sudoku : Gtk.Application
                         start_game (SudokuGenerator.generate_board (board.difficulty_category));
                         break;
                     case 1:
-                        // FIXME - This looks hack-ish
-                        DifficultyCategory[] new_range = {};
-                        for (var i = 1; i < 5; i++)
-                            if (i != (int) board.difficulty_category)
-                                new_range += (DifficultyCategory) i;
-
-                        start_game (SudokuGenerator.generate_board (new_range[Random.int_range (0, 3)]));
+                        show_new_game_screen ();
                         break;
                 }
                 dialog.destroy ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]