mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Change pos.pieces() argument order
Let first argument to be the 'color'. This allows to align pos.pieces() signatures with piece_list(), piece_count() and all the other functions where 'color' argument is passed as first one. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -97,7 +97,7 @@ const string move_to_san(Position& pos, Move m) {
|
||||
|
||||
// Disambiguation if we have more then one piece with destination 'to'
|
||||
// note that for pawns is not needed because starting file is explicit.
|
||||
attackers = pos.attackers_to(to) & pos.pieces(pt, pos.side_to_move());
|
||||
attackers = pos.attackers_to(to) & pos.pieces(pos.side_to_move(), pt);
|
||||
attackers ^= from;
|
||||
ambiguousMove = ambiguousFile = ambiguousRank = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user