/* End of code added by Tord */
case IllegalMove: /* bug or odd chess variant */
if(currentMoveString[1] == '@') { // illegal drop
- *fromX = *moveType == WhiteOnMove(moveNum) ?
+ *fromX = WhiteOnMove(moveNum) ?
(int) CharToPiece(ToUpper(currentMoveString[0])) :
(int) CharToPiece(ToLower(currentMoveString[0]));
goto drop;
else gatingPiece = doubleClick ? fromP : EmptySquare;
fromX = x;
fromY = y; dragging = 1;
- ReportClick("lift", x, y);
+ if(!second) ReportClick("lift", x, y);
MarkTargetSquares(0);
DragPieceBegin(xPix, yPix, FALSE);
if(appData.sweepSelect && CanPromote(piece = boards[currentMove][y][x], y)) {