diff options
Diffstat (limited to 'chess-gnuchess.el')
| -rw-r--r-- | chess-gnuchess.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chess-gnuchess.el b/chess-gnuchess.el index 373cac8..1d87173 100644 --- a/chess-gnuchess.el +++ b/chess-gnuchess.el @@ -88,8 +88,9 @@ (unless chess-gnuchess-now-moving (chess-engine-send nil (concat (chess-ply-to-algebraic (car args)) "\n")) - (if chess-gnuchess-bad-board - (chess-engine-send nil "go\n")))))) + (when chess-gnuchess-bad-board + (chess-engine-send nil "go\n") + (setq chess-gnuchess-bad-board nil)))))) (provide 'chess-gnuchess) |
