Merge branch 'master' into increase_iid

This commit is contained in:
Marco Costalba
2013-03-29 22:50:04 +01:00
3 changed files with 23 additions and 17 deletions
+9 -3
View File
@@ -856,7 +856,8 @@ split_point_start: // At split points actual search starts from here
&& !captureOrPromotion
&& !inCheck
&& !dangerous
&& move != ttMove)
&& move != ttMove
&& bestValue > VALUE_MATED_IN_MAX_PLY)
{
// Move count based pruning
if ( depth < 16 * ONE_PLY
@@ -878,9 +879,14 @@ split_point_start: // At split points actual search starts from here
if (futilityValue < beta)
{
if (SpNode)
splitPoint->mutex.lock();
bestValue = std::max(bestValue, futilityValue);
if (SpNode)
{
splitPoint->mutex.lock();
if (bestValue > splitPoint->bestValue)
splitPoint->bestValue = bestValue;
}
continue;
}