From: H.G.Muller Date: Tue, 29 Mar 2016 14:30:50 +0000 (+0200) Subject: Fix erasing of premove highlights XB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=95244a1c40718e9ad8bda9e2df66677e180354d6;p=xboard.git 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. --- 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;