summaryrefslogtreecommitdiff
path: root/chess-common.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-15 02:45:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-15 02:45:42 +0000
commite9568bd14aaeb1a78da525f1b1e2c5669317069d (patch)
tree04fcb09177638c42e15e2a2bc6853f413c01306a /chess-common.el
parent8e27000c6be74218671ffc92db748e07b2242b54 (diff)
*** no comment ***
Diffstat (limited to 'chess-common.el')
-rw-r--r--chess-common.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/chess-common.el b/chess-common.el
index f468dca..5d8ae19 100644
--- a/chess-common.el
+++ b/chess-common.el
@@ -77,8 +77,9 @@
(chess-game-undo chess-engine-game (car args))))
((eq event 'move)
- (chess-engine-send nil (concat (chess-ply-to-algebraic (car args))
- "\n")))))
+ (chess-engine-send nil (concat (chess-ply-to-algebraic (car args)) "\n"))
+ (if (chess-game-over-p chess-engine-game)
+ (chess-game-set-data chess-engine-game 'active nil)))))
(provide 'chess-common)