X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=f50677bb7e612c8536883ff9037bcecc437d81a1;hp=5ee0107f4252ec59f7dedbbea6ab85aa60e07292;hb=099b5e45e6fb84c0c6ac9c867e0902e0195d97a5;hpb=a492a9dd079d95faf136a744ff6d47a3d109ad68 diff --git a/src/position.cpp b/src/position.cpp index 5ee0107f..f50677bb 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -752,7 +752,7 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI k ^= zobSideToMove; // Increment the 50 moves rule draw counter. Resetting it to zero in the - // case of non-reversible moves is taken care of later. + // case of a capture or a pawn move is taken care of later. st->rule50++; st->pliesFromNull++; @@ -1155,9 +1155,6 @@ void Position::do_castle_move(Move m) { st->castleRights &= castleRightsMask[kfrom]; st->key ^= zobCastle[st->castleRights]; - // Reset rule 50 counter - st->rule50 = 0; - // Update checkers BB st->checkersBB = attackers_to(king_square(~us)) & pieces(us);