summaryrefslogtreecommitdiff
path: root/chess-common.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-22 19:23:45 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-22 19:23:45 +0000
commit62c13bcfa1933274be856ac5840a933bbaca5f27 (patch)
tree81e2d4ab1a749a4d2561e824708abd60a04d67d0 /chess-common.el
parent171cc1aceb0e9acafe329ff6cd0ca1e2852876ce (diff)
Bug fixes and reducing the TODO list.
Diffstat (limited to 'chess-common.el')
-rw-r--r--chess-common.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/chess-common.el b/chess-common.el
index 775dc4a..167ee4d 100644
--- a/chess-common.el
+++ b/chess-common.el
@@ -75,10 +75,9 @@
(chess-game-undo game (car args))))
((eq event 'move)
- (if (= 0 (chess-game-index game))
- (chess-game-set-tag game "White" chess-full-name)
- (if (= 1 (chess-game-index game))
- (chess-game-set-tag game "Black" chess-engine-opponent-name)))
+ (when (= 1 (chess-game-index game))
+ (chess-game-set-tag game "White" chess-full-name)
+ (chess-game-set-tag game "Black" chess-engine-opponent-name))
(chess-engine-send nil (concat (chess-ply-to-algebraic (car args)) "\n"))