From 95244a1c40718e9ad8bda9e2df66677e180354d6 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 29 Mar 2016 16:30:50 +0200 Subject: [PATCH] Fix erasing of premove highlights XB The to-square premove highlight was not marked for erasure (but the from-square was marked twice if the to-square higlight changed), leading to accumulation of highlighted squares during PV walking. --- board.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board.c b/board.c index 30cea29..f691696 100644 --- a/board.c +++ b/board.c @@ -194,7 +194,7 @@ SetPremoveHighlights (int fromX, int fromY, int toX, int toY) } if (pm2X != toX || pm2Y != toY) { if (pm2X >= 0 && pm2Y >= 0) { - damage[0][pm1Y][pm1X] |= 2; + damage[0][pm2Y][pm2X] |= 2; } } pm1X = fromX; -- 1.7.0.4