summaryrefslogtreecommitdiff
path: root/chess-link.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2002-04-16 21:12:27 +0000
committerJohn Wiegley <johnw@newartisans.com>2002-04-16 21:12:27 +0000
commit97e9758dad2d3fe8c5ef97589065fe157ca4730d (patch)
tree077cb0c3437606927a145ed4fd20b1ebbe652ab3 /chess-link.el
parent44debed6b167edc21b4f52d4e1152d0bdf439e91 (diff)
(chess-link): Fixed an error in display creation, and which game was
used.
Diffstat (limited to 'chess-link.el')
-rw-r--r--chess-link.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/chess-link.el b/chess-link.el
index 091e13e..6448196 100644
--- a/chess-link.el
+++ b/chess-link.el
@@ -49,10 +49,9 @@ engine, and the computer the second engine."
(interactive "sFirst engine: \nsSecond engine: ")
(setq first-engine-type (intern (concat "chess-" first-engine-type))
second-engine-type (intern (concat "chess-" second-engine-type)))
- (require chess-default-display)
(let* ((my-color t) ; we start out as white always
- (game (chess-game-create))
- (display (chess-create-display-object my-color)))
+ (display (chess-create-display-object my-color))
+ (game (chess-display-game display)))
(chess-game-set-data game 'my-color my-color)
(chess-module-set-leader display)
(chess-display-disable-popup display)