From c0b6d3079c133f9e21766f500feed1c81bf3cafb Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 18 Feb 2015 22:49:20 +0100 Subject: [PATCH] Suppress appearance of promotion popup when sweep-selecting In highlight-induced promotions the popup would appear even when it should have been off. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index d8b85a1..ad78134 100644 --- a/backend.c +++ b/backend.c @@ -7732,7 +7732,7 @@ printf("(%d,%d)-(%d,%d) %d %d\n",fromX,fromY,toX,toY,x,y); if(legal[toY][toX] == 2) promoChoice = ToLower(PieceToChar(defaultPromoChoice)); // highlight-induced promotion - if (legal[toY][toX] == 2 || HasPromotionChoice(fromX, fromY, toX, toY, &promoChoice, appData.sweepSelect)) { + if (legal[toY][toX] == 2 && !appData.sweepSelect || 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) { -- 1.7.0.4