projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dd5b308
)
Correctly fix "break from split" patch
author
Marco Costalba
<mcostalba@gmail.com>
Sat, 3 Nov 2012 16:06:49 +0000 (17:06 +0100)
committer
Marco Costalba
<mcostalba@gmail.com>
Sat, 3 Nov 2012 16:09:18 +0000 (17:09 +0100)
In case split cut-offs we return with still
some moves to go but we really want to break
out from the loop now.
No functional change.
src/search.cpp
patch
|
blob
|
history
diff --git
a/src/search.cpp
b/src/search.cpp
index
03d0579
..
253311a
100644
(file)
--- a/
src/search.cpp
+++ b/
src/search.cpp
@@
-1016,8
+1016,12
@@
split_point_start: // At split points actual search starts from here
&& depth >= Threads.min_split_depth()
&& bestValue < beta
&& Threads.available_slave_exists(thisThread))
+ {
bestValue = Threads.split<FakeSplit>(pos, ss, alpha, beta, bestValue, &bestMove,
depth, threatMove, moveCount, mp, NT);
+ if (bestValue >= beta)
+ break;
+ }
}
if (SpNode)