X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=bb7510f92c2a25809d1d7c9f956e730ffcfa5e50;hb=dd5cb5a354036d69172eeec2dd5c0cbb49b5c2c8;hp=c364fe24484d37faade1a218bfd7168e2cd2851f;hpb=567921db5befd9669ba89e8c90fa88d814cce943;p=xboard.git diff --git a/backend.c b/backend.c index c364fe2..bb7510f 100644 --- a/backend.c +++ b/backend.c @@ -6450,9 +6450,7 @@ int RightClick(ClickType action, int x, int y, int *xx, int *yy) xSqr = BOARD_WIDTH - 1 - xSqr; else ySqr = BOARD_HEIGHT - 1 - ySqr; - if(promotionChoice == 3 && action == Release - && promoBoard[ySqr][xSqr] != EmptySquare && (xSqr != fromX || ySqr != fromY) // not needed if separate window - ) { + if(promotionChoice == 3 && action == Release) { EditPositionMenuEvent(promoBoard[ySqr][xSqr], fromX, fromY); fromX = fromY = -1; promotionChoice = 0;