clock: Fix game ending too soon when using Fischer/Bronstein clocks

https://bugzilla.gnome.org/show_bug.cgi?id=779937
This commit is contained in:
Michael Catanzaro 2017-03-12 10:51:32 -05:00
parent 054c631590
commit 59111fcf8a

View file

@ -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 ();