Merge branch 'master' into bishop_pin_clop

This commit is contained in:
Gary Linscott
2013-02-19 10:31:52 -05:00
7 changed files with 75 additions and 118 deletions

View File

@@ -498,7 +498,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
// Init king safety tables only if we are going to use them
if ( pos.piece_count(Us, QUEEN)
&& pos.non_pawn_material(Us) >= QueenValueMg + RookValueMg)
&& pos.non_pawn_material(Us) > QueenValueMg + PawnValueMg)
{
ei.kingRing[Them] = (b | (Us == WHITE ? b >> 8 : b << 8));
b &= ei.attackedBy[Us][PAWN];