Fix clearing of markers dots with promo popup
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 5 Oct 2012 16:42:51 +0000 (18:42 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 21 Oct 2012 09:28:14 +0000 (11:28 +0200)
backend.c

index 4522ca1..7e8ed59 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -7316,6 +7316,7 @@ LeftClick (ClickType clickType, int xPix, int yPix)
 
     if (HasPromotionChoice(fromX, fromY, toX, toY, &promoChoice, appData.sweepSelect)) {
        SetHighlights(fromX, fromY, toX, toY);
+        MarkTargetSquares(1);
        if(gameInfo.variant == VariantSuper || gameInfo.variant == VariantGreat || gameInfo.variant == VariantGrand) {
            // [HGM] super: promotion to captured piece selected from holdings
            ChessSquare p = boards[currentMove][fromY][fromX], q = boards[currentMove][toY][toX];