summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c45c6d3)
Simplify occupied destination condition.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
return false;
// The destination square cannot be occupied by a friendly piece
return false;
// The destination square cannot be occupied by a friendly piece
- if (piece_on(to) != NO_PIECE && color_of(piece_on(to)) == us)
return false;
// Handle the special case of a pawn move
return false;
// Handle the special case of a pawn move