[gnome-chess/gnome-3-8] Fix loading games where the human was last to move
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-8] Fix loading games where the human was last to move
- Date: Wed, 1 May 2013 04:48:59 +0000 (UTC)
commit 822d53fe0e14ec06cf77ac6b60941c4a548dd601
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]