chess-puzzles

chess puzzle book generator
git clone git://git.codemadness.org/chess-puzzles
Log | Files | Refs | README | LICENSE

commit 3ccf4d4450965cc2853d9cbc8b81b75cfd44660a
parent 7915ffd10d87934201c751632a4e1dd4c3cb65cb
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 22 Jan 2024 00:55:15 +0100

fen.c: fix highlight square when castling

Diffstat:
Mfen.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fen.c b/fen.c @@ -1221,10 +1221,8 @@ board_playmoves(struct board *b, const char *moves) } } if (castled) { - /* set previous move square (for highlight) */ - x = i; - y = y2; place(b, piece, x2, y2); /* place king */ + x2 = i; /* set square for highlight */ } /* remove the ability to castle */