summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
46bb6c6)
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
// Move must not be MOVE_NONE !
// Move must not be MOVE_NONE !
- return ( !square_is_empty(move_to(m))
- && (color_of_piece_on(move_to(m)) != color_of_piece_on(move_from(m)))
- )
- || move_is_ep(m);
+ return (!square_is_empty(move_to(m)) && !move_is_castle(m)) || move_is_ep(m);
}
#endif // !defined(POSITION_H_INCLUDED)
}
#endif // !defined(POSITION_H_INCLUDED)