Merge pull request #8058 from chhornung/fix-ceval-godeeper

Fix ceval 'go deeper' button analyzing a different position than the currently viewed one
pull/7945/head
Niklas Fiekas 2021-02-01 12:56:34 +01:00 committed by GitHub
commit acc2819eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -163,7 +163,14 @@ export default function(opts: CevalOpts): CevalCtrl {
const step = steps[steps.length - 1];
const existing = threatMode ? step.threat : step.ceval;
if (existing && existing.depth >= maxD) return;
if (existing && existing.depth >= maxD) {
lastStarted = {
path,
steps,
threatMode
};
return;
}
const work: Work = {
initialFen: steps[0].fen,