From: H.G.Muller Date: Fri, 20 Feb 2015 13:07:40 +0000 (+0100) Subject: Fix illegal-drop fix X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4ac8f856998e69684cb3465ffaead92a6a6ed9b1;p=xboard.git Fix illegal-drop fix --- diff --git a/backend.c b/backend.c index 3730e07..e4e3550 100644 --- a/backend.c +++ b/backend.c @@ -5528,7 +5528,7 @@ ParseOneMove (char *move, int moveNum, ChessMove *moveType, int *fromX, int *fro /* 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;