X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=7672207afe4c942a156151048f99e6c5065c79ac;hb=c612331f05b9a1ddddb6f25c598b4258f9e094b1;hp=36b6dd304f736bf52d50918db792396dafb52509;hpb=44c648b3b2a9be6a595287e9f31ee0662eae3370;p=xboard.git diff --git a/backend.c b/backend.c index 36b6dd3..7672207 100644 --- a/backend.c +++ b/backend.c @@ -6772,7 +6772,7 @@ Adjudicate(ChessProgramState *cps) || NrWN==2 || NrBN==2 /* KNNK */ || NrWN+NrWB == 1 && NrBN+NrBB == 1 /* KBKN, KBKB, KNKN */ ) ) { - if(canAdjudicate && --moveCount < 0 && appData.trivialDraws) + if(--moveCount < 0 && appData.trivialDraws && canAdjudicate) { /* if the first 3 moves do not show a tactical win, declare draw */ if(engineOpponent) { SendToProgram("force\n", engineOpponent); // suppress reply @@ -6823,7 +6823,7 @@ Adjudicate(ChessProgramState *cps) boards[forwardMostMove][CASTLING][4] != boards[k][CASTLING][4] ) rights++; } - if( canAdjudicate && rights == 0 && ++count > appData.drawRepeats-2 + if( rights == 0 && ++count > appData.drawRepeats-2 && canAdjudicate && appData.drawRepeats > 1) { /* adjudicate after user-specified nr of repeats */ if(engineOpponent) {