summaryrefslogtreecommitdiff
path: root/chess-sound.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-12 11:09:04 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-12 11:09:04 +0000
commita63c0563b8857186ec3d7efe9ce5fa1add332647 (patch)
treeb80a4e5741e04acd86980c41f86f1743882e20e8 /chess-sound.el
parent30692f15986c90f7b776c83e2de142738d6161d6 (diff)
*** no comment ***
Diffstat (limited to 'chess-sound.el')
-rw-r--r--chess-sound.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/chess-sound.el b/chess-sound.el
index 6c31a9d..61cfa83 100644
--- a/chess-sound.el
+++ b/chess-sound.el
@@ -67,8 +67,7 @@
(defun chess-sound-handler (game ignore event &rest args)
"This display module presents a standard chessboard.
See `chess-display-type' for the different kinds of displays."
- (cond
- ((eq event 'move)
+ (when (eq event 'move)
(let* ((ply (chess-game-ply game (1- (chess-game-index game))))
(pos (chess-ply-pos ply)))
(if (eq (chess-game-data game 'my-color)
@@ -97,8 +96,7 @@ See `chess-display-type' for the different kinds of displays."
(if (chess-ply-has-keyword :checkmate)
(chess-sound ?#))
(if (chess-ply-has-keyword :stalemate)
- (chess-sound "smate")))))
- nil)))
+ (chess-sound "smate")))))))
(provide 'chess-sound)