Fix erasing and exposing of arrow on secondary board
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 22 Mar 2016 19:59:51 +0000 (20:59 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Mar 2016 14:51:34 +0000 (16:51 +0200)
For the second board the damage flags set for exposing a freshly drawn
arrow are left for the next draw to erase that arrow again.

board.c

diff --git a/board.c b/board.c
index 7b3535a..30cea29 100644 (file)
--- a/board.c
+++ b/board.c
@@ -1043,7 +1043,7 @@ DrawPosition (int repaint, Board board)
                        SquareExpose(i, j, lineGap);
                    else
                        SquareExpose(i, j, 0);
                        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
                }
     }
 
                }
     }