]> code.delx.au - gnu-emacs-elpa/commitdiff
(chess-clock-tick-tock): Do not decrease time if (chess-game-status chess-module...
authorMario Lang <mlang@delysid.org>
Sun, 11 Jan 2004 21:56:03 +0000 (21:56 +0000)
committerMario Lang <mlang@delysid.org>
Sun, 11 Jan 2004 21:56:03 +0000 (21:56 +0000)
is non-nil.

chess-clock.el

index 9ef01f76b3268bdf26e966b5474228429894f2da..c8bb28e11466032e53a6d38e4071b18c0f73e780 100644 (file)
@@ -84,7 +84,8 @@
              (chess-game-inhibit-events t)
              counter)
          (setq chess-clock-last-time (current-time))
-         (when (> (chess-game-index chess-module-game) 0)
+         (when (and (> (chess-game-index chess-module-game) 0)
+                    (not (chess-game-status chess-module-game)))
            (if (chess-pos-side-to-move (chess-game-pos chess-module-game))
                (setq counter 'white-remaining)
              (setq counter 'black-remaining))