[gnome-chess/gnome-3-12] ChessGame: do not complete move if game is over
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess/gnome-3-12] ChessGame: do not complete move if game is over
- Date: Thu, 26 Jun 2014 21:20:35 +0000 (UTC)
commit 7deffd7a9772912f2593e0b6ececbc13eb4f1161
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Jun 25 15:15:17 2014 -0500
ChessGame: do not complete move if game is over
Fixes clock unpausing when using Undo after gnuchess has decided to
report a move but before it has actually done so (which is no longer
possible after the previous commit, anyway)
src/chess-game.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/chess-game.vala b/src/chess-game.vala
index 4817d20..bfd120c 100644
--- a/src/chess-game.vala
+++ b/src/chess-game.vala
@@ -1401,6 +1401,9 @@ public class ChessGame : Object
/* Wait until the hold is removed */
if (hold_count > 0)
return;
+
+ if (!is_started)
+ return;
ChessRule rule;
var result = current_state.get_result (out rule);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]