From: Marco Costalba Date: Wed, 10 Dec 2008 17:46:12 +0000 (+0100) Subject: Fix inflate pawns.cpp fallout X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=ab29d8df678adb97e2bc40b04f13e4f17577ada0;hp=389dc0e83bd0a205952432fc9e866dbe32bd54e1 Fix inflate pawns.cpp fallout Catched counting the nodes searched at fixed depth. A quick and reliable cross check, expecially in inflate only patches. Signed-off-by: Marco Costalba --- diff --git a/src/pawns.cpp b/src/pawns.cpp index 3a8f88bb..a09fe683 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -244,15 +244,15 @@ PawnInfo *PawnInfoTable::get_pawn_info(const Position &pos) { // pawns on h6, g5, black pawns on h7, g6, f7). // Kingside and queenside pawn storms - bool outPost = (outpost_mask(us, s) & theirPawns); - bool passed = (passed_pawn_mask(us, s) & theirPawns); int KBonus = KStormTable[relative_square(us, s)]; int QBonus = QStormTable[relative_square(us, s)]; + bool outPost = (KBonus > 0 && (outpost_mask(us, s) & theirPawns)); + bool passed = (QBonus > 0 && (passed_pawn_mask(us, s) & theirPawns)); switch (f) { case FILE_A: - QBonus += passed * QBonus / 4; + QBonus += passed * QBonus / 2; break; case FILE_B: