(Re)introduce DEPTH_ZERO to replace Depth(0)

No functional changes.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-08-18 15:13:10 +01:00
parent ea2b8a93eb
commit 4f28e19fc0
3 changed files with 22 additions and 20 deletions

View File

@@ -90,7 +90,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
if (p.is_check())
phasePtr = EvasionsPhaseTable;
else if (d > Depth(0))
else if (d > DEPTH_ZERO)
{
// Consider sligtly negative captures as good if at low
// depth and far from beta.
@@ -99,7 +99,7 @@ MovePicker::MovePicker(const Position& p, Move ttm, Depth d, const History& h,
phasePtr = MainSearchPhaseTable;
}
else if (d == Depth(0))
else if (d == DEPTH_ZERO)
phasePtr = QsearchWithChecksPhaseTable;
else
{