fix analysis of long games is always partial (fixes #10223)

deepcrayonfish^2
Niklas Fiekas 2021-12-11 16:40:37 +01:00
parent 759626efea
commit 4ee19711c9
1 changed files with 2 additions and 1 deletions

View File

@ -794,7 +794,8 @@ export default class AnalyseCtrl {
this.tree.merge(data.tree);
if (!this.showComputer()) this.tree.removeComputerVariations();
this.data.analysis = data.analysis;
if (data.analysis) data.analysis.partial = !!treeOps.findInMainline(data.tree, n => !n.eval && !!n.children.length);
if (data.analysis)
data.analysis.partial = !!treeOps.findInMainline(data.tree, n => !n.eval && !!n.children.length && n.ply <= 200);
if (data.division) this.data.game.division = data.division;
if (this.retro) this.retro.onMergeAnalysisData();
if (this.study) this.study.serverEval.onMergeAnalysisData();