In WB the moving of SetHighlights to after the animation had broken the
highlighting of engine moves, because it was also moved after DrawPosition.
While it is DrawPosition that actually draws the highlights. Now it has been
moved to just before DrawPosition.
if (instant) return;
DisplayMove(currentMove - 1);
- DrawPosition(FALSE, boards[currentMove]);
if (!pausing || gameMode == PlayFromGameFile || gameMode == AnalyzeFile) {
if (appData.highlightLastMove) { // [HGM] moved to after DrawPosition, as with arrow it could redraw old board
SetHighlights(fromX, fromY, toX, toY);
}
}
+ DrawPosition(FALSE, boards[currentMove]);
DisplayBothClocks();
HistorySet(parseList,backwardMostMove,forwardMostMove,currentMove-1);
}