From 6797bd9f6f43a4121ee3385a8571158c294a57d6 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 2 Feb 2016 19:18:13 +0100 Subject: [PATCH] Fix aborted detour under-promotion XB When a dragged Pawn was released before the promotion piece was fixed, this would fake a release on the from-square. But the repair of animation damage would take place on the to-square derived from the actual mouse coordinates. When this was different from the from-square, the animation damage (consisting of removalof the piece) would thus not be repaired by redrawing that square, as normally (when the to-square is different) it should remain empty. Now we mark the from-square as damaged when the detour under-promotion changes the dragged piece. --- board.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/board.c b/board.c index 5916d45..e8111dd 100644 --- a/board.c +++ b/board.c @@ -670,6 +670,7 @@ ChangeDragPiece (ChessSquare piece) { anims[Player].dragPiece = piece; SetDragPiece(Player, piece); + damage[0][fromY][fromX] = True; } void -- 1.7.0.4