mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Spread usage of pos.piece_moved()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -84,7 +84,7 @@ const string move_to_san(Position& pos, Move m) {
|
||||
bool ambiguousMove, ambiguousFile, ambiguousRank;
|
||||
Square sq, from = from_sq(m);
|
||||
Square to = to_sq(m);
|
||||
PieceType pt = type_of(pos.piece_on(from));
|
||||
PieceType pt = type_of(pos.piece_moved(m));
|
||||
string san;
|
||||
|
||||
if (is_castle(m))
|
||||
|
||||
Reference in New Issue
Block a user