]> git.lizzy.rs Git - xdecor.git/commit
Chess: Fix short-castling for black
authorDamian Hofmann <femtobit@users.noreply.github.com>
Sun, 7 Jun 2020 00:32:13 +0000 (02:32 +0200)
committerJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Wed, 24 Jun 2020 16:31:30 +0000 (18:31 +0200)
commitd86848863369a5e34f5c85e503d45a014f32ff5e
tree8cbbfda95bd1e5864667e20db1ad2c2370109122
parent7a4c0e852aee7d50d184c51d727a74910d285ece
Chess: Fix short-castling for black

In the code for black short-castling, the presence of rook_black_2 was checked on the wrong field (1 instead of 8), which prevents black from short-castling. (This was probably overlooked when copying the logic from the long-castling check directly above.)
src/chess.lua