[gnome-chess] Fix loading games where the human was last to move



commit ef8c92cec70bd7bc834c059573c7857b648639da
Author: Michael Catanzaro <mike catanzaro gmail com>
Date:   Tue Apr 30 23:39:49 2013 -0500

    Fix loading games where the human was last to move
    
    https://bugzilla.gnome.org/show_bug.cgi?id=609815

 src/gnome-chess.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index c566a6d..f6615e6 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -541,7 +541,6 @@ public class Application : Gtk.Application
     {
         if (opponent_engine.ready)
         {
-            game.start ();
             view.queue_draw ();
         }
     }
@@ -570,7 +569,7 @@ public class Application : Gtk.Application
 
     private void game_turn_cb (ChessGame game, ChessPlayer player)
     {
-        if (opponent_engine != null && player == opponent)
+        if (game.is_started && opponent_engine != null && player == opponent)
             opponent_engine.request_move ();
     }
 


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