Fix repairing of arrow damage
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 19 Feb 2013 16:48:39 +0000 (17:48 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 19 Feb 2013 16:48:39 +0000 (17:48 +0100)
The '2' bit in damage[][] to indicate the arrow was erroneously cleared,
rather than kept.

board.c

diff --git a/board.c b/board.c
index 0941fc9..d7c050b 100644 (file)
--- a/board.c
+++ b/board.c
@@ -1029,7 +1029,7 @@ DrawPosition (int repaint, Board board)
                        GraphExpose(currBoard, x - lineGap, y - lineGap, squareSize + 2*lineGap, squareSize  + 2*lineGap);
                    else
                        GraphExpose(currBoard, x, y, squareSize, squareSize);
-                   damage[nr][i][j] &= ~2; // remember damage by newly drawn error in '2' bit, to schedule it for erasure next draw
+                   damage[nr][i][j] &= 2; // remember damage by newly drawn error in '2' bit, to schedule it for erasure next draw
                }
     }