src/chess/rules.c

changeset 103
a2a68fd9f6cc
parent 100
685af47592b5
child 105
a991ea61f0e2
--- a/src/chess/rules.c	Fri Apr 17 12:00:18 2026 +0200
+++ b/src/chess/rules.c	Fri Apr 17 12:24:03 2026 +0200
@@ -790,6 +790,11 @@
     unsigned used_time = 0;
     suseconds_t micros = 0;
 
+    /* when this is a 0+X game, the clock starts with the increment */
+    if (gameinfo->time == 0) {
+        total_time += gameinfo->addtime;
+    }
+
     /* go through all already played moves */
     unsigned first_move = move_number % 2;
     unsigned next_move = move_number;

mercurial