Save futilityMargin for both colors

It will be needed by future patches.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-02-01 20:06:56 +01:00
parent 06a695d5b8
commit 35ada63174
3 changed files with 7 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ class Position;
struct EvalInfo {
EvalInfo() : futilityMargin(Value(0)) {}
EvalInfo() { futilityMargin[0] = futilityMargin[1] = Value(0); }
// Middle game and endgame evaluations
Score value;
@@ -96,8 +96,8 @@ struct EvalInfo {
Score mobility;
// Extra futility margin. This is added to the standard futility margin
// in the quiescence search.
Value futilityMargin;
// in the quiescence search. One for each color.
Value futilityMargin[2];
};