From dd5cb5a354036d69172eeec2dd5c0cbb49b5c2c8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 26 Jan 2010 00:17:21 +0100 Subject: [PATCH] Remove some left-over pseudo-popup code The code to block same-square and empty-square up-clicks from selecting something is not desirable anymore now the popup has its own window. --- backend.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) 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; -- 1.7.0.4