]> code.delx.au - gnu-emacs-elpa/commitdiff
[gnugo int] Fix bug: On -l/--infile, inhibit first move if game over.
authorThien-Thi Nguyen <ttn@gnu.org>
Sun, 20 Apr 2014 15:50:20 +0000 (17:50 +0200)
committerThien-Thi Nguyen <ttn@gnu.org>
Sun, 20 Apr 2014 15:50:20 +0000 (17:50 +0200)
Omission from 2014-04-19, "Fix bug:
Ensure gametree sync for -l/--infile".

* packages/gnugo/gnugo.el (gnugo): ...here.

packages/gnugo/gnugo.el

index e3c290b71e4d452f8f1f6656f7c520c951e97492..81a094df84684ddeadd26f7249d81c4d02bef2b8 100644 (file)
@@ -2557,7 +2557,8 @@ See `gnugo-board-mode' for a full list of commands."
                 u
               g)))
         (run-hooks 'gnugo-start-game-hook)
-        (when (string= g (gnugo-current-player))
+        (when (and (not (gnugo-get :game-over))
+                   (string= g (gnugo-current-player)))
           (gnugo-refresh t)
           (gnugo-get-move g))))))