diff options
Diffstat (limited to 'chess-pos.el')
| -rw-r--r-- | chess-pos.el | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
