[gnome-2048] Fix first launch.



commit e70ce8b950608b5951a87ed855c3c1df8ff8e062
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Mar 6 15:43:58 2019 +0100

    Fix first launch.
    
    When the game is launched for the first time,
    there is no saved game, so the game failed to
    restore; then, game state is the initial one.

 src/game.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/game.vala b/src/game.vala
index 2fe2b31..738fb9a 100644
--- a/src/game.vala
+++ b/src/game.vala
@@ -119,7 +119,7 @@ private class Game : Object
 
     internal void new_game (ref GLib.Settings settings)
     {
-        if (_state != GameState.IDLE)
+        if (_state != GameState.IDLE && _state != GameState.STOPPED)
             return;
 
         _clean_finish_move_animation ();


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