mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Clarify definition of capture_or_promotion()
No functional change.
This commit is contained in:
@@ -379,7 +379,7 @@ inline bool Position::is_chess960() const {
|
||||
inline bool Position::capture_or_promotion(Move m) const {
|
||||
|
||||
assert(is_ok(m));
|
||||
return type_of(m) ? type_of(m) != CASTLING : !empty(to_sq(m));
|
||||
return type_of(m) != NORMAL ? type_of(m) != CASTLING : !empty(to_sq(m));
|
||||
}
|
||||
|
||||
inline bool Position::capture(Move m) const {
|
||||
|
||||
Reference in New Issue
Block a user