X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.cpp;h=16c902d127c85ac98f7cf3a44a378733d3d24ee7;hp=396fd97637fe8f6f12f3e47462908475684e57bc;hb=3a6753328cb18b043c36f8f7c1faeb4b88a2cdc0;hpb=3017e8c60401ecd92468a9ede3368002c4ddd440 diff --git a/src/pawns.cpp b/src/pawns.cpp index 396fd976..16c902d1 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -110,9 +110,9 @@ namespace { const Square Right = (Us == WHITE ? DELTA_NE : DELTA_SW); const Square Left = (Us == WHITE ? DELTA_NW : DELTA_SE); - Bitboard b, neighbours, doubled, connected, supported, phalanx; + Bitboard b, neighbours, doubled, supported, phalanx; Square s; - bool passed, isolated, opposed, backward, lever; + bool passed, isolated, opposed, backward, lever, connected; Score score = SCORE_ZERO; const Square* pl = pos.list(Us); const Bitboard* pawnAttacksBB = StepAttacksBB[make_piece(Us, PAWN)]; @@ -149,7 +149,7 @@ namespace { isolated = !neighbours; // Test for backward pawn. - // If the pawn is passed, isolated, connected or a lever it cannot be + // If the pawn is passed, isolated, lever or connected it cannot be // backward. If there are friendly pawns behind on adjacent files // it cannot be backward either. if ( (passed | isolated | lever | connected)