1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Fix indentations for hanging pawns code

No functional change
This commit is contained in:
Joona Kiiski 2015-03-29 08:54:25 +01:00
parent 60beb18efc
commit 61a6e46664

View file

@ -503,11 +503,13 @@ namespace {
// Pawn Threats // Pawn Threats
b = ei.attackedBy[Us][PAWN] & (pos.pieces(Them) ^ pos.pieces(Them, PAWN)); b = ei.attackedBy[Us][PAWN] & (pos.pieces(Them) ^ pos.pieces(Them, PAWN));
if (b) if (b)
{ {
safe_pawns = pos.pieces(Us, PAWN) & (~ei.attackedBy[Them][ALL_PIECES] | ei.attackedBy[Us][ALL_PIECES]); safe_pawns = pos.pieces(Us, PAWN) & (~ei.attackedBy[Them][ALL_PIECES] | ei.attackedBy[Us][ALL_PIECES]);
safe_pawn_threats = (shift_bb<Right>(safe_pawns) | shift_bb<Left>(safe_pawns)) & (pos.pieces(Them) ^ pos.pieces(Them, PAWN)); safe_pawn_threats = (shift_bb<Right>(safe_pawns) | shift_bb<Left>(safe_pawns)) & (pos.pieces(Them) ^ pos.pieces(Them, PAWN));
unsafe_pawn_threats = b ^ safe_pawn_threats; unsafe_pawn_threats = b ^ safe_pawn_threats;
// Unsafe pawn threats // Unsafe pawn threats
if (unsafe_pawn_threats) if (unsafe_pawn_threats)
score += ThreatenedByHangingPawn; score += ThreatenedByHangingPawn;
@ -515,7 +517,6 @@ namespace {
// Evaluate safe pawn threats // Evaluate safe pawn threats
while (safe_pawn_threats) while (safe_pawn_threats)
score += ThreatenedByPawn[type_of(pos.piece_on(pop_lsb(&safe_pawn_threats)))]; score += ThreatenedByPawn[type_of(pos.piece_on(pop_lsb(&safe_pawn_threats)))];
} }
// Non-pawn enemies defended by a pawn // Non-pawn enemies defended by a pawn