From 8412d2a26237846f33e8d9e96226cf0c60bbde08 Mon Sep 17 00:00:00 2001 From: rooklift <16438795+rooklift@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:07:34 +0000 Subject: [PATCH] Fix for Nagisa's issue, maybe --- files/src/renderer/80_info.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/src/renderer/80_info.js b/files/src/renderer/80_info.js index 8b99569d..b5af31db 100644 --- a/files/src/renderer/80_info.js +++ b/files/src/renderer/80_info.js @@ -143,6 +143,7 @@ let info_receiver_props = { } let move_cycle_pre_update = move_info.cycle; + let move_depth_pre_update = move_info.depth; // --------------------------------------------------------------------------------------------------------------------- @@ -237,8 +238,12 @@ let info_receiver_props = { if (CompareArrays(new_pv, move_info.pv) === false) { if (!board.sequence_illegal(new_pv)) { - if (move_cycle_pre_update === move_info.cycle && ArrayStartsWith(move_info.pv, new_pv)) { + if (move_cycle_pre_update === move_info.cycle + && ArrayStartsWith(move_info.pv, new_pv) + && move_depth_pre_update >= move_info.depth - 1 + ) { // Skip the update. This partially mitigates Stockfish sending unresolved PVs. + // We don't skip the update if the old PV is too old - issue noticed by Nagisa. } else { move_info.set_pv(new_pv); }