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.
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;