Don't update_gains() in qsearch
authorMarco Costalba <mcostalba@gmail.com>
Sun, 12 Jun 2011 06:09:30 +0000 (07:09 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sun, 12 Jun 2011 06:09:30 +0000 (07:09 +0100)
Is almost unuseful becuase captures are skipped.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/search.cpp

index ec2b1c9cee1d09ce1637bd9bed7d8b7a2e65ed0a..c30fe92e35c2a048ac608873a03c886614f6db06 100644 (file)
@@ -1372,8 +1372,6 @@ split_point_start: // At split points actual search starts from here
         else
             ss->eval = bestValue = evaluate(pos, evalMargin);
 
-        update_gains(pos, (ss-1)->currentMove, (ss-1)->eval, ss->eval);
-
         // Stand pat. Return immediately if static value is at least beta
         if (bestValue >= beta)
         {