From: H.G. Muller Date: Fri, 8 Jan 2010 08:21:04 +0000 (+0100) Subject: Bugfix legality null move in parsing with -testLegality off X-Git-Tag: v4.4.3.20100118~7 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=941d11f411a4d4c0f6edcc1a25010b8a60dad052;p=xboard.git Bugfix legality null move in parsing with -testLegality off The pointers were compared, in stead of the values. Also in stead of rejecting null moves with legality testing off, it rejected moves on the main diagonal. --- diff --git a/backend.c b/backend.c index b9348a9..4dab307 100644 --- a/backend.c +++ b/backend.c @@ -4349,7 +4349,7 @@ ParseOneMove(move, moveNum, moveType, fromX, fromY, toX, toY, promoChar) if (appData.testLegality) { return (*moveType != IllegalMove); } else { - return !(fromX == fromY && toX == toY); + return !(*fromX == *toX && *fromY == *toY); } case WhiteDrop: