From e946b10a06122d2beca4129080a7148596c816f7 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 10 Oct 2009 08:26:13 -0700 Subject: [PATCH] removed test for premove this was added while looking for the premove bug, but is not needed --- backend.c | 12 ------------ 1 files changed, 0 insertions(+), 12 deletions(-) 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; } -- 1.7.0.4