X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=f69169610199f9d4f66a422472ef5f9493491021;hb=95244a1c40718e9ad8bda9e2df66677e180354d6;hp=7b3535a66abf347f6bd26d05afef05bbf6d8bb84;hpb=894916fe72347000731f92313b9c2230fd837247;p=xboard.git diff --git a/board.c b/board.c index 7b3535a..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; @@ -1043,7 +1043,7 @@ DrawPosition (int repaint, Board board) SquareExpose(i, j, lineGap); else SquareExpose(i, j, 0); - damage[nr][i][j] = 0; + if(nr == 0) damage[nr][i][j] = 0; // on auxiliary board we retain arrow damage } }