[gnome-chess/gnome-3-22] clock: Fix game ending too soon when using Fischer/Bronstein clocks



commit 35c5a83a3a08798683b57da2447d7f142ae01fff
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sun Mar 12 10:51:32 2017 -0500

    clock: Fix game ending too soon when using Fischer/Bronstein clocks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779937

 lib/chess-clock.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/chess-clock.vala b/lib/chess-clock.vala
index 187327c..04269a5 100644
--- a/lib/chess-clock.vala
+++ b/lib/chess-clock.vala
@@ -168,8 +168,8 @@ public class ChessClock : Object
 
         tick ();
 
-        if (white_seconds_used >= white_initial_seconds ||
-            black_seconds_used >= black_initial_seconds)
+        if (white_seconds_used >= white_initial_seconds + white_extra_seconds ||
+            black_seconds_used >= black_initial_seconds + black_extra_seconds)
         {
             stop ();
             expired ();


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