removed test for premove
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 10 Oct 2009 15:26:13 +0000 (08:26 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 10 Oct 2009 15:26:13 +0000 (08:26 -0700)
this was added while looking for the premove bug, but is not needed

backend.c

index ddd4ef2..565942b 100644 (file)
--- 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;
        }