From: H.G. Muller Date: Sat, 10 Oct 2009 15:26:13 +0000 (-0700) Subject: removed test for premove X-Git-Tag: v4.4.1.20091019~44 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=e946b10a06122d2beca4129080a7148596c816f7;p=xboard.git removed test for premove this was added while looking for the premove bug, but is not needed --- diff --git a/backend.c b/backend.c index ddd4ef2..565942b 100644 --- a/backend.c +++ b/backend.c @@ -5158,12 +5158,6 @@ UserMoveTest(fromX, fromY, toX, toY, promoChar, captureOwn) fprintf(debugFP, "Got premove: fromX %d," "fromY %d, toX %d, toY %d\n", fromX, fromY, toX, toY); - if(!WhiteOnMove(currentMove) && gotPremove == 1) { - // [HGM] race: we must have been hit by an opponent move from the ICS while preparing the premove - if (appData.debugMode) - fprintf(debugFP, "Execute as normal move\n"); - gotPremove = 0; break; - } } return ImpossibleMove; } @@ -5185,12 +5179,6 @@ UserMoveTest(fromX, fromY, toX, toY, promoChar, captureOwn) fprintf(debugFP, "Got premove: fromX %d," "fromY %d, toX %d, toY %d\n", fromX, fromY, toX, toY); - if(WhiteOnMove(currentMove) && gotPremove == 1) { - // [HGM] race: we must have been hit by an opponent move from the ICS while preparing the premove - if (appData.debugMode) - fprintf(debugFP, "Execute as normal move\n"); - gotPremove = 0; break; - } } return ImpossibleMove; }