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

Remove useless variable 'PostFutilityValueMargin'

No functional change

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Joona Kiiski 2010-01-28 00:02:51 +02:00 committed by Marco Costalba
parent 973e574e1f
commit bdd61b1744

View file

@ -1468,7 +1468,6 @@ namespace {
// Calculate depth dependant futility pruning parameters // Calculate depth dependant futility pruning parameters
const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8)); const int FutilityMoveCountMargin = 3 + (1 << (3 * int(depth) / 8));
const int PostFutilityValueMargin = FutilityMargins[int(depth)];
// Evaluate the position statically // Evaluate the position statically
if (!isCheck) if (!isCheck)
@ -1482,7 +1481,7 @@ namespace {
} }
ss[ply].eval = staticValue; ss[ply].eval = staticValue;
futilityValue = staticValue + PostFutilityValueMargin; //FIXME: Remove me, only for split futilityValue = staticValue + FutilityMargins[int(depth)]; //FIXME: Remove me, only for split
staticValue = refine_eval(tte, staticValue, ply); // Enhance accuracy with TT value if possible staticValue = refine_eval(tte, staticValue, ply); // Enhance accuracy with TT value if possible
update_gains(pos, ss[ply - 1].currentMove, ss[ply - 1].eval, ss[ply].eval); update_gains(pos, ss[ply - 1].currentMove, ss[ply - 1].eval, ss[ply].eval);
} }
@ -1493,8 +1492,8 @@ namespace {
// FIXME: test with modified condition 'depth < RazorDepth' // FIXME: test with modified condition 'depth < RazorDepth'
if ( !isCheck if ( !isCheck
&& depth < SelectiveDepth && depth < SelectiveDepth
&& staticValue - PostFutilityValueMargin >= beta) && staticValue - FutilityMargins[int(depth)] >= beta)
return staticValue - PostFutilityValueMargin; return staticValue - FutilityMargins[int(depth)];
// Null move search // Null move search
if ( allowNullmove if ( allowNullmove