From 0bad9bdd7634f039d5a30cfb19b100bbfe54d18e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 10 Apr 2002 01:17:48 +0000 Subject: Support smart killing/yanking --- chess-pos.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chess-pos.el') diff --git a/chess-pos.el b/chess-pos.el index d6aa178..33f1aad 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -301,7 +301,10 @@ trying to move a blank square." ;; promote the piece if we were meant to (let ((new-piece (cadr (memq :promote changes)))) (if new-piece - (chess-pos-set-piece position (cadr changes) new-piece))) + (chess-pos-set-piece position (cadr changes) + (if color + new-piece + (downcase new-piece))))) ;; did we leave the position in check, mate or stalemate? (cond -- cgit v1.2.3